Skip to content

Unexpected notch behavior #28956

@mehmetf

Description

@mehmetf

Here's a sample app: https://gist.github.com/mehmetf/0bae55d83574e378705174bd9fec012b

When SafeArea is not used, in landscape:

  • there is padding added in at the start and end of the ListViews
  • the FAB is also offset
  • the padding is larger than the actual notch (see screenshots 1, 2, 3, and 4).

When SafeArea is used, in landscape:

  • there is padding added on both ends
  • the padding is larger than the actual notch (see screenshots 5 and 6)

iPhone X screenshots:

  1. Portrait, without SafeArea, ListViews scrolled to start
    image

  2. Portrait, without SafeArea, ListViews scrolled to end
    image

  3. Landscape, without SafeArea, ListViews scrolled to start
    image

  4. Landscape, without SafeArea, ListViews scrolled to end
    image

  5. Portrait, with SafeArea
    image

  6. Landscape, with SafeArea
    image

iPhone X/without SafeArea/Portrait: padding=EdgeInsets(0.0, 44.0, 0.0, 34.0) : viewInsets=EdgeInsets.zero
iPhone X/without SafeArea/Landscape: padding=EdgeInsets(44.0, 0.0, 44.0, 21.0) : viewInsets=EdgeInsets.zero
iPhone X/with SafeArea/Portrait: padding=EdgeInsets(0.0, 44.0, 0.0, 34.0) : viewInsets=EdgeInsets.zero
iPhone X/with SafeArea/Landscape: padding=EdgeInsets(44.0, 0.0, 44.0, 21.0) : viewInsets=EdgeInsets.zero

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer: googleVarious Google teamsengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions