newFlutterFragment

FlutterFragment

createDefault

()

flutterFragment

newFlutterFragment

fragmentManager

beginTransaction

()

add

id

fragment_container

newFlutterFragment

TAG_FLUTTER_FRAGMENT

commit

()

The previous code is sufficient to render a Flutter UI
that begins with a call to your main() Dart entrypoint,
an initial Flutter route of /, and a new FlutterEngine.
However, this code is not sufficient to achieve all expected
Flutter behavior. Flutter depends on various OS signals that
must  be forwarded from your host Activity to FlutterFragment.
These calls are shown in the following example:

Java

Kotlin

public

class

MyActivity