@Override

public

void

onClick

View

startActivity

FlutterActivity

withCachedEngine

"my_engine_id"

build

currentActivity

);

});

myButton

setOnClickListener

startActivity

FlutterActivity

withCachedEngine

"my_engine_id"

build

this

When using the withCachedEngine() factory method,
pass the same ID that you used when caching the desired
FlutterEngine.

Now, when you launch FlutterActivity,
there is significantly less delay in
the display of Flutter content.