How to prevent going back to previous page on Flutter Web via browser back button?

After a user successfully logged in in my Flutter web app, it should be taken to a dashboard view. The user then should not be able to navigate back to the logi...

how to rewrite a url in go_router?

I'd like to handle urls like <code>/?query=xxx</code>, and redirect to the url <code>/query/</code> with the query content being passed as <code>extra</code> <pre...

Remember the state of bottomNavigation bar when back to a page flutter

In <code>main_activity.dart</code>, there has 4 bottom navigation bar, named A,B,C and D. <strong>main_activity.dart</strong> <pre><code>class MainPage ex...

How to work with NavigationBar in go_router? | Flutter

I am currently struggling refactoring my routing code with <a href="https://pub.dev/packages/go_router" rel="noreferrer">go_router</a>. I already got some simpl...

Exception has occurred. _AssertionError (package:go_router/src/configuration.dart: Failed assertion: line 74 pos 16: paramNames.contains(key):

I am coding an app with Flutter. I am using go_router: ^4.2.7 to navigate between pages. It's a learning app. In the section my_course_materials_page.dart...

Flutter Web - Go Router Navigation Change Web URL based on bottom tab selection

I was trying to implement a bottom-tab navigation with 3 tabs in my home screen for my flutter website project. Currently I'm using go_router package for flutter web r...

What is the difference between builder and pageBuilder in the Go Router package?

In the Flutter <a href="https://pub.dev/packages/go_router" rel="nofollow noreferrer"><code>go_router</code></a> package, there are apparently two ways of creating a n...

flutter- getx nested routes with tab

I am going to build flutter app with Getx. I followed nested navigator from <a href="https://github.com/jonataslaw/getx/issues/799#issuecomment-730719165" rel="...

Flutter go_router: how to use ShellRoute with an expanded child?

Given the following go_router config: <pre><code>GoRouter( initialLocation: /one, routes: [ ShellRoute( builder: (_, __,...

Set default transition for go_router in Flutter

as <a href="https://gorouter.dev/transitions" rel="nofollow noreferrer">the docs from go_router</a> describe, it is easy to set <code>pageBuilder</code>-Transitions fo...

Flutter multiscreen using DisplayManager or MediaRouter

I'm developing an app in Flutter which is supposed to run on a <a href="https://www.jassway.com/product/471.html" rel="nofollow noreferrer">POS with two screens</a>. I...

EpisodeDetailsRouteArgs can not be null because it has a required parameter

I got <strong>EpisodeDetailsRouteArgs can not be null because it has a required parameter</strong> this error, even I passed the arguments. Here my inkwell wid...

Flutter image assets not loading after redirect with go_router &amp; login

I have a small Flutter app with 2 screens (<code>/login</code> &amp; <code>/home</code>) and I use <a href="https://pub.dev/packages/go_router" rel="nofollow noreferre...

Flutter go_router, how to get the whole current stack of pages?

Meaning if I go from a job screen to a client screen (the client the job was for), to another job screen (another job done for the client) etc, how can I display job &...

Flutter GetX - how to implement a loading screen that check the token

So this is the scenario: I build an app that the first route or the first thing to do is check with a API REST a verification of a token that I already have on...