Skip to content

Support setting background for FlutterView #17874

@mehmetf

Description

@mehmetf

FlutterView is black until the isolate can load and run the Flutter app. To allow users to customize the color (or even assign a drawable), FlutterActivityDelegate renders a view on top of the FlutterView until the first frame is rendered.

It would be great if this trick was not necessary and FlutterView itself could support customizing what's being shown on the canvas until the Flutter frame is rendered.

The rationale is that apps would have to copy/paste this trick in add-to-app use cases such as:

  • Adding FlutterView to a Fragment
  • Adding FlutterView to a custom activity

Metadata

Metadata

Labels

a: existing-appsIntegration with existing apps via the add-to-app flowcustomer: dream (g3)engineflutter/engine related. See also e: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions