Skip to content

[go_router] [navigator 2.0] declarative version of showModalBottomSheet is missing #104193

@dkbast

Description

@dkbast

Use case

When using GoRouter or another navigator 2.0 implementation which is inherently declarative it is difficult to reproduce the showModalBottomSheet behaviour.

I would expect to be able to push a bottomSheet onto the page stack of the router instead of adding it to the [Navigator]
Thats what is causing this issue: #100933

When trying to recreate the modal behaviour in a CustomTransitionPage in GoRouter we have this issue blocking us:
#102289

Proposal

Further reading

There are community solutions like simple_cupertino_modal_route.dart but it would be more consistent to have access to the already existing navigator 1 version, especially for anybody considering to transition to Navigator 2.0

There is an open SO question on this as well: https://stackoverflow.com/questions/70478220/how-do-i-declaratively-push-bottomsheet-with-navigator-2-0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterf: routesNavigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.packageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions