Skip to content

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

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.

Activity

  1. added
    c: new featureNothing broken; request for a new capability
    engineflutter/engine related. See also e: labels.
    a: existing-appsIntegration with existing apps via the add-to-app flow
    P1High-priority issues at the top of the work list
    team-iosOwned by iOS platform team
    on May 20, 2025
  2. jmagman commented on May 20, 2025

    @jmagman
    MemberAuthor
  3. 20 remaining items

  4. added
    ⏳Bot is counting down the days until it unassigns the issue
    on Nov 21, 2025
  5. flutter-triage-bot commented on Nov 21, 2025

    @flutter-triage-bot

    This issue is assigned to @LouiseHsu but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

  6. github-actions commented on Dec 6, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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