Open In App

How to Integrate a Flutter Module into Your Android Project?

Improve
Improve
Like Article
Like
Save
Share
Report

Flutter is an open-source UI software development kit created by Google. It is used to develop cross-platform applications for Android, iOS, Linux, macOS, Windows, and the web from a single code-base. It uses Dart as the programming language. Dart is an Open-Source, client-side programming language. It is easy to learn, stable, and creates high-performance applications. Flutter can be embedded into your existing Android application, as a source code Gradle subproject. The integration flow can be done using the Android Studio IDE with the Flutter plugin or manually.

Using Android Studio IDE

Step 1: To install the IDE on windows refer to How to Install and Set up Android Studio on Windows?

Step 2: You need to have Flutter Plugins installed in your Android Studio to proceed. You can download it from the Marketplace in Android Studio. Reference: “Install the Flutter and Dart plugins” part of Android Studio Setup for Flutter Development 

Step 3: Restart the IDE. 

Step 4: If you have installed Android Studio for the first time or haven’t created an Android Project before, you will be introduced to some similar interface. You can simply click on New Flutter Project and proceed. 

Using Android Studio IDE

 

Else, if you already have a previously build Android Project or your Android Studio opens with a Folder containing some files. You need to follow: File -> New -> New Flutter Project

Using Android Studio IDE

 

Step 5: Now, you can refer to context-related Flutter SDK Installation: How to Install Flutter on Windows? 

The Android Studio plugin automatically configures your Android project to add your Flutter module as a dependency, and your app is ready to build.

Manual Integration

Suppose you want to have your new flutter app, at some/path/ 

> cd some/path/
> flutter create -t module --org com.example demo_project
Manual Integration

 

This creates a some/path/demo_project/  Flutter module project with some Dart code to get you started.


Last Updated : 12 Jun, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads