Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.35 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.35 KB

Flutter Hybrid Composition

A demonstration of using Hybrid Composition facilities on Android platforms.

Background

Starting from Flutter 1.20.0, the hybrid composition can be used on Android. This new feature fixes most of the issues with the existing platform view approach. In particular, accessibility and keyboard related issues.

In previous versions of Flutter, the application runs with an issue that the keyboard cannot pop up properly with native EditText included in Flutter plugins. Now, with Hybrid Composition, this issue has been fixed. Here is the link of the issue:

flutter/flutter#55046

Purpose

This sample application mainly illustrates how to pack an EditText into a Flutter plugin and represents it in a Flutter application.

Test

With Flutter 1.20.2 (Channel stable), this demonstration has been tested successfully on:

  • Android Emulator, Android 10
  • Google Nexus 5X, Android 8.0.0
  • Google Pixel 3, Android 10
  • OnePlus 3T, Android 7.1.1
  • OnePlus 5, Android 7.1.1
  • OnePlus 7, Android 10
  • Xiaomi CC 9, Android 9
  • Xiaomi MIX 2, Android 8.0.0