-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/engine
#6172Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: dream (g3)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
Description
In engine, the screen is filled with SK_ColorBLACK. This makes it impossible to use FlutterView as a transparent overlay, since canvas clearing is in the hands of the engine instead of the flutter application.
I've solved this temporarily by punching a hole in the Skia canvas by drawing a rectangle with the paint new Paint()..blendMode = BlendMode.clear; using a BoxDecoration and a BoxPainter, but this isn't very intuitive.
I've also hit some Android specific snags. It would be great if FlutterView had a method named useAsOverlay that calls setZOrderOnTop(true) and getHolder().setFormat(PixelFormat.TRANSLUCENT). Right now my Android code depends on FlutterView being a SurfaceView, but I'm not entirely confident that it'll remain that way.
jwmcglynn, MehdiChouag, NorseDreki, knvpk, phanirithvij and 1 more
Metadata
Metadata
Assignees
Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: dream (g3)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.