Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow scrolling notifications to report content-based insets #107322

Open
@Piinks

Description

@Piinks

Internal: b/144318472

Consolidated from

It is a common issue across the framework where a widget that positions itself on the edge of a viewport, and reacts to scroll notifications will undesirably overlap some scrolling content that is also aligned with the edge of the viewport.

I have been considering solutions for #13253 for a while, and discovered the issue is not specific to scrollbars. There are a number of places where this issue is present. I am capturing them all here for tracking and testing.

The following are widgets I have identified that would want to report inset information in a scroll notification:

  • SliverAppBar
  • SliverPersistentHeader
  • CupertinoSliverNavigationBar
  • SliverOverlapAbsorber/Injector (NestedScrollView)

And these are the widgets I have identified as wanting to know about this inset information so they can position themselves as expected, on the edge of the above widgets rather than the absolute edge of the viewport:

I have a proposal almost ready for this, see #107182

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: qualityA truly polished experiencec: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.customer: money (g3)f: cupertinoflutter/packages/flutter/cupertino repositoryf: material designflutter/packages/flutter/material repository.f: scrollingViewports, list views, slivers, etc.team-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