FlutterActivity
or a

FlutterFragment,
but since the

FlutterView
in this case is being added to an Activity or Fragment in your application,
you must recreate the connections manually. Otherwise, the

FlutterView
will not render anything or have other missing functionalities.

A sample FlutterViewEngine
class shows one such possible implementation of an application-specific
connection between an Activity, a FlutterView
and a FlutterEngine.

APIs to implement

The absolute minimum implementation needed for Flutter to draw anything at all
is to:

Call attachToFlutterEngine when the
FlutterView
is added to a resumed Activity’s view hierarchy and is visible; and

Call appIsResumed on the FlutterEngine’s
lifecycleChannel field when the Activity hosting the FlutterView
is visible.