Skip to content

Allow using "maintainState" in ChildRoute definition #572

@trevhud

Description

@trevhud

Project Name
flutter_modular

Is your feature request related to a problem? Please describe.
maintainState is a property of MaterialPageRoute. I use this for my project and would like to use it for named routes in Flutter Modular as well. The problem is that state is always maintained in the navigation stack.

Describe the solution you'd like
Support for maintainState

Describe alternatives you've considered
I've tried just using push with the MaterialPageRoute, but then it doesn't get added to the stack as a named route so popUntil won't work for example.

Additional context
Add any other context or screenshots about the feature request here.

Screenshots
If applicable, add screenshots or videos to help explain your problem.

Thanks for your help. Looking for any way to use maintainStatein in named routes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnewNew issue request attention

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions