Skip to content

Allow an embedded Flutter View on iOS to size itself, implement content-sized views #169147

@jmagman

Description

@jmagman

iOS version of #149033.

Web version implemented with #134501.

Original issue

This is like #134501, but for mobile.

A use case for addtoapp would be to embed Flutter into a native scrollable of some sort. Consider the following:

image

At this time, on mobile platforms, the size of the Flutter view must be fixed in the embedding. This reduces the design space for the embedded Flutter app.

<LinearLayout
  android:id="@+id/flutter_view_container"
  android:layout_width="match_parent"
  android:layout_height="500dp" />

Instead, we want to be able to set wrap_content:

<LinearLayout
  android:id="@+id/flutter_view_container"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"/>

See b/342534475 for more internal context.

Metadata

Metadata

Assignees

Labels

Bot is counting down the days until it unassigns the issueP1High-priority issues at the top of the work lista: existing-appsIntegration with existing apps via the add-to-app flowc: new featureNothing broken; request for a new capabilitycustomer: thoughts (g3)engineflutter/engine related. See also e: labels.team-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions