TAG_FLUTTER_FRAGMENT

);

// Create and attach a FlutterFragment if one does not exist.

if

flutterFragment

==

null

flutterFragment

FlutterFragment

createDefault

();

fragmentManager

beginTransaction

()

add

id

fragment_container

flutterFragment

TAG_FLUTTER_FRAGMENT

commit

();

class

MyActivity

FragmentActivity

()

companion

object

// Define a tag String to represent the FlutterFragment within this

// Activity's FragmentManager. This value can be whatever you'd like.

private