private

const

val

TAG_FLUTTER_FRAGMENT

"flutter_fragment"

// Declare a local variable to reference the FlutterFragment so that you

// can forward calls to it later.

private

var

flutterFragment

FlutterFragment

null

override

fun

onCreate

savedInstanceState

Bundle

?)

super

onCreate

savedInstanceState

// Inflate a layout that has a container for your FlutterFragment. For

// this example, assume that a FrameLayout exists with an ID of

// R.id.fragment_container.

setContentView

layout

my_activity_layout