Skip to content

MediaQueryData.viewInsets might not be the right thing to use on iOS keyboard #58822

Open

Description

@xster

The default behavior for iOS keyboards might be closer to media query padding rather than a view inset.

In an iOS app, such as iMessage, open the keyboard and scroll. The content will scroll behind the translucent keyboard. This doesn't happen by default in Flutter since our Scaffold and CupertinoScafford default to resizeToAvoidBottomInset=true. This makes it unlikely for any content to be behind the keyboard which loses the "frosted glass look and feel".

Activity

  1. added
    platform-iosiOS applications specifically
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    a: fidelityMatching the OEM platforms better
    p: cupertino_uicupertino_ui package in flutter/packages
    on Jun 5, 2020
  2. xster commented on Jun 5, 2020

    @xster
    ContributorAuthor

    @mehmetf points out there are apps that don't behave this way as well. Though a quick look on 13.5, Settings, Contacts, Maps, Notes, Safari do this, which makes me suspect that's the "iOS-y" way.

  3. gintominto5329 commented on Dec 3, 2022

    @gintominto5329

    @xster,

    Any Updates?

  4. added
    team-designOwned by Design Languages team
    triaged-designTriaged by Design Languages team
    and removed
    team-iosOwned by iOS platform team
    triaged-iosTriaged by iOS platform team
    on Jul 17, 2023
  5. added
    P3Issues that are less important to the Flutter project
    on Mar 4, 2025
  6. added
    packageflutter/packages repository. See also p: labels.
    and removed
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: fidelityMatching the OEM platforms betterp: cupertino_uicupertino_ui package in flutter/packagesp: material_uimaterial_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions