"adjustResize"

/>

The reference to @style/LaunchTheme can be replaced
by any Android theme that want to apply to your FlutterActivity.
The choice of theme dictates the colors applied to
Android’s system chrome, like Android’s navigation bar, and to
the background color of the FlutterActivity just before
the Flutter UI renders itself for the first time.

Step 2: Launch FlutterActivity

With FlutterActivity registered in your manifest file,
add code to launch FlutterActivity from whatever point
in your app that you’d like. The following example shows
FlutterActivity being launched from an OnClickListener.

Note:
Make sure to use the following import:

import

io.flutter.embedding.android.FlutterActivity

Java

Kotlin

myButton

setOnClickListener

new

OnClickListener

()