var

flutterEngine

FlutterEngine

override

fun

onCreate

()

super

onCreate

()

// Instantiate a FlutterEngine.

flutterEngine

FlutterEngine

this

// Configure an initial route.

flutterEngine

navigationChannel

setInitialRoute

"your/route/here"

);

// Start executing Dart code to pre-warm the FlutterEngine.

flutterEngine

dartExecutor

executeDartEntrypoint

DartExecutor

DartEntrypoint

createDefault

()

// Cache the FlutterEngine to be used by FlutterActivity or FlutterFragment.