The following example registers a text share intent filter on the native
activity that runs our Flutter code, so other apps can share text with
our Flutter app.

The basic flow implies that we first handle the shared text data on the
Android native side (in our Activity), and then wait until Flutter requests
for the data to provide it using a MethodChannel.

First, register the intent filter for all intents in AndroidManifest.xml:

<activity

android:name=

".MainActivity"

android:launchMode=

"singleTop"

android:theme=

"@style/LaunchTheme"

android:configChanges=

"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"

android:hardwareAccelerated=

"true"

android:windowSoftInputMode=

"adjustResize"