Supporting the new Android plugins APIs

Upgrade steps

Testing your plugin

Basic plugin

UI/Activity plugin

Note:
  You might be directed to this page if the framework detects that
  your app uses a plugin based on the old Android APIs.

If you don’t write or maintain an Android Flutter plugin,
you can skip this page.

As of the 1.12 release,
new plugin APIs are available for the Android platform.
The old APIs based on PluginRegistry.Registrar
won’t be immediately deprecated,
but we encourage you to migrate to the new APIs based on
FlutterPlugin.

The new API has the advantage of providing a cleaner set
of accessors for lifecycle dependent components compared
to the old APIs. For instance
PluginRegistry.Registrar.activity() could return null if
Flutter isn’t attached to any activities.