Skip to content

CupertinoSliverNavigationBar should snap between large and middle title #126028

@MitchellGoodwin

Description

@MitchellGoodwin

Use case

On iOS 16, when a page is partially scrolled so either the large or middle title is partially shown, the page will snap to fully show one or the other. So if a scroll goes past 50% of the way to the next state, it will snap to finish. But if the scroll stops before the 50% point, it will snap back to the previous point.

Proposal

This is how it currently works on iOS 16:

navbar_snap_scrolling.mov

Currently in Cupertino it will just stop wherever it was left in the scroll. We should match the behavior on iOS to not create any jarring differences.

Ideally the logic will be easily shareable with other nav bars, for possible adaptive logic between them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listf: cupertinoflutter/packages/flutter/cupertino repositoryframeworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions