DEV Community

Cover image for Add Flutter View to Native Android Application
Raksha for Canopas Software

Posted on

1

Add Flutter View to Native Android Application

How to integrate the flutter app into the existing android app?

Today you will learn how to add Flutter views to android native components like activity or fragment.

With the add-to-app feature, we can add flutter UI to our existing app, as it’s not always possible to migrate the whole app into Flutter all at once. We can add the Flutter project as a library or module to our Native app.

Here's what you will learn in this post.

You will learn to implement a simple demo application in android which will have two Flutter pages. On the first page, we'll show a list of users, and the second screen will be the user detail screen.

Then we will embed the flutter module in our android native application as an AAR Library.

The article is divided into 4 logical steps to make understanding easier.

Create Flutter module
Generate AAR files from the module
Integrate the flutter module into the android app
Configure Activity to make use of Flutter view

For implementation,visit our blog to read full version of this article.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more