Skip to content

saibotma/hcpp_edit_text_loupe_repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HCPP transparent EditText loupe repro

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 --profile

The 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:

  1. a transparent native EditText background
  2. an opaque white native EditText background

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors