You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
A back button is added to the app bar, but it's always disabled, making it useless.
Describe the solution you'd like
Implement a navigation history. The back button should be enabled when the navigation can go backwards. It should support the following navigation flows:
It should be accessible to the devs, with something like NavigationHistory.of(context), in order to make it possible to create custom navigation flows.
Could be done by wrapping the API around a nested Navigator on the body
Describe alternatives you've considered
Using the built-in flutter navigator (Navigator.of(context)). Altough that's a bad approach, since most of the app will live under a NavigationView, and using the built-in navigator can't make the inner navigation possible.
Navigator 2.0 is a possibility, and would make it possible to create a nice web navigation flow with url.
Ideally this would integrate with Navigator 2.0 to "go back" and to know if there is anything to go back to. It's likely much simpler this way to implement anyway. Currently, I'm using vRouter (implements Nav 2.0 interfaces) combined with fluent_ui in my app (sketch of the approach here), and it has nice web navigation flow using browser forward/backward buttons in combination with NavigationView (including ability to navigate inside of NavigationView). In my app for web deployment I've just hidden the back button on the fluent_ui app bar and expect users to use the stock browser back/forward functions. Once I get to desktop version I'll possibly probably use something like bitsdojo_window to add custom forward/back buttons on a custom app title bar.
Is your feature request related to a problem? Please describe.
A back button is added to the app bar, but it's always disabled, making it useless.
Describe the solution you'd like
Implement a navigation history. The back button should be enabled when the navigation can go backwards. It should support the following navigation flows:
It should be accessible to the devs, with something like
NavigationHistory.of(context)
, in order to make it possible to create custom navigation flows.Could be done by wrapping the API around a nested
Navigator
on the bodyDescribe alternatives you've considered
Using the built-in flutter navigator (
Navigator.of(context)
). Altough that's a bad approach, since most of the app will live under aNavigationView
, and using the built-in navigator can't make the inner navigation possible.Navigator 2.0 is a possibility, and would make it possible to create a nice web navigation flow with url.
Additional context
The text was updated successfully, but these errors were encountered: