Hosting native Android views in your Flutter app with Platform Views

Platform integration

Android

Android platform-views

On the Dart side

Hybrid composition
Virtual display

On the platform side

Performance

Platform views allow you to embed native views in a Flutter app,
so you can apply transforms, clips, and opacity to the native view
from Dart.

This allows you, for example, to use the native
Google Maps from the Android SDK
directly inside your Flutter app.

Note:
  This page discusses how to host your own native views
  within a Flutter app.
  If you’d like to embed native iOS views in your Flutter app,
  see Hosting native iOS views.

Flutter supports two modes:
Hybrid composition and virtual displays.

Which one to use depends on the use case.
Let’s take a look: