Managing plugins and dependencies in add-to-app

Add Flutter to existing app

Adding Flutter to Android

Plugin setup

A. Simple scenario

B. Plugins needing project edits

C. Merging libraries

This guide describes how to set up your project to consume
plugins and how to manage your Gradle library dependencies
between your existing Android app and your Flutter module’s plugins.

A. Simple scenario

In the simple cases:

Your Flutter module uses a plugin that has no additional
Android Gradle dependency because it only uses Android OS
APIs, such as the camera plugin.

Your Flutter module uses a plugin that has an Android
Gradle dependency, such as
ExoPlayer from the video_player plugin,
but your existing Android app didn’t depend on ExoPlayer.