Questions tagged [flutter-engine]

46 questions
7
votes
0 answers

Reset FlutterFragment content using Flutter Engine while using FlutterFragment

I am using a Flutter module inside my Android Application. I have defined a global Flutter Engine in a pre heated state in my Activity and is attaching it to a FlutterFragment as and when required in a particular Scenario. Below is pre heated engine…
5
votes
1 answer

Can I get a Flutter surface texture with Flutter FFI?

This is part of the code for a Flutter plugin that uses a Flutter texture to render something with OpenGL private FlutterVideoPlugin(Registrar registrar, MethodChannel channel) { this.registrar = registrar; this.channel = channel; …
PPP
  • 1,279
  • 1
  • 28
  • 71
5
votes
2 answers

Android Flutter launch custom activity with cached engine

Iam integrating FlutterActivity to a native Android app. I have CustomFlutterActivity which inherits from FlutterActivity, which I want to launch using cached FlutterEngine. This is the code from the documentation for how to do this: startActivity( …
user3703910
  • 624
  • 1
  • 5
  • 25
3
votes
0 answers

Adding multiple flutter library modules fails build with duplicate class

Fail log gw assembleDebug --scan > Task :app:checkDebugDuplicateClasses FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'. > A failure occurred while executing…
3
votes
2 answers

Flutter UI widgets in Unity 3D engine

I am looking for support which can render the flutter widgets inside unity 3d engine. This will be helpful to utilize in our current flutter application and for building 3D applications. I am new to flutter it will be helpful if anyone can suggest…
Ro D
  • 41
  • 2
3
votes
0 answers

New initial route every time when Flutter controller is initialized with pre-warmed flutter engine

We are building native ios applications that has embedded Flutter screens in it. So far, we have been initializing Flutter controller every time with new engine, because we need to set different route whenever new Flutter controller is…
3
votes
2 answers

cannot find symbol public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine)

I am getting this error while trying to register plugin in MainActivity.java file Error log : error: cannot find symbol public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { …
Md Shahnawaz
  • 556
  • 5
  • 20
2
votes
0 answers

Why hot-reload is not working with my custom flutter embedder?

I wrote a custom flutter embedder for desktop applications (I would like to support Platform Views that are rendered with Vulkan). The embedder works fine and is able to run and render flutter applications, handle platform messages etc. However, I…
Elad Maimoni
  • 3,703
  • 3
  • 20
  • 37
2
votes
1 answer

Navigate in cached Flutter Engine

I have a question regarding FlutterEngine I have a single cached flutter engine that I wanna reuse on many screens in my android app, so I'd have to somehow navigate the routes inside cached engine. Is there any way I can set the route of cached…
Taosif7
  • 325
  • 1
  • 3
  • 9
2
votes
0 answers

Flutter: What does "Detaching from a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@99177fa" means?

I do see it on the console whenever my flutter app goes to the background. Hence, why I am wondering what the technical meaning is. Update Would also like to know about this - Attaching to a FlutterEngine:…
Johngorithm
  • 371
  • 2
  • 8
1
vote
0 answers

Flutter repaint behaviour - confusing

I am trying to understand the behaviour of Flutter handling repaints, and using RepaintBoundary, with the help of the inspector. I have been looking at a simple example shown here:…
WieFel
  • 91
  • 9
1
vote
1 answer

Future is not executed in Flutter side while called through FlutterMethodChannel from iOS

I'm calling a Flutter method from the native side, I have no problem with Android but iOS is not working. The Future is not executed and the result is never returned to iOS. Here is a simple example. Dart/Flutter side: MethodChannel _methodChannel =…
Plumillon Forge
  • 1,659
  • 1
  • 16
  • 31
1
vote
0 answers

Is there a way to add Flutter to an extension Target on iOS xCode?

Assuming I have a basic flutter app and I add a target in xcode for the ios app. Would there be any way to link it to the main Flutter folder so I can do an "import Flutter" in the extension the same way it's done in the AppDelegate then start a…
aloys-c
  • 51
  • 5
1
vote
0 answers

MethodChannel not sending data back from Flutter to iOS with flutter engine run from notification service extension

I'm trying to launch briefly a flutter engine from a notification service extension in order to run some dart code. I created a new flutter module that I compiled as a framework and added to the extension target in xCode. The code works well and the…
1
vote
0 answers

NSAssert is enable after custom flutter engine

I get a crash message, NSInternalInconsistencyException Invalid JSON message, decoding failed CoreFoundation ___exceptionPreprocess crash in FlutterCodecs.mm NSAssert(encoding, @"Invalid JSON message, encoding failed"); I compiled the flutter engine…
littleYX
  • 11
  • 1
1
2 3 4