This is a minimal Flutter Android repro for an embedded native Android EditText
platform view using HCPP.
The project enables HCPP in android/app/src/main/AndroidManifest.xml:
<meta-data
android:name="io.flutter.embedding.android.EnableHcpp"
android:value="true" />Run on an Android device that supports HCPP:
flutter run --profileThe app prints and displays surfaceControlEnabled=true when Flutter reports that
HCPP/SurfaceControl is active.
The screen shows two native EditText platform views over the same purple Flutter
background:
- a transparent native
EditTextbackground - an opaque white native
EditTextbackground
Long-press or drag inside both fields. The transparent native field visually shows the purple Flutter background behind the text, but the Android magnifier does not show that final composited result correctly. The opaque field gives the magnifier native pixels to sample, so it shows the white native background rather than the Flutter purple background behind the platform view.