How to pass multiple arguments in named route in flutter

I am trying to pass multiple arguments to a named route. I have tried multiple things but have not succeeded so far. Can anyone tell me how to achieve this? rou...

Flutter cant change route because undefined name context with PopupMenuButton how to solve?

I want to click an item menu (PopupMenuItem) and go to another route using Navigator.push but context is undefined inside the method. <pre><code>import 'package:f...

Flutter Provider on Navigator inject multiple objects

New to Flutter, I have Provider on top of my app with the class Events. Is there any way to inject more than one object in Navigator builder like MapBox(events.itmaps,...

Flutter: Autoroute : RouteGuard not working in AutoTabsScaffold

I am trying add auth guard for my AutoTabsScaffold [bottom nav] but it's not working, It's working in other navigation pages but not just inside my landing page [where...

Flutter pass settings.arguments to MaterialPageRoute

I use a function to perform all my routing. I now need to pass some arguments to CustomerDeskSearchResultsView and I do following: <pre><code>Route&lt;dynamic&gt;...

GetX Get.arguments always returns null

I have an issue with routing. I am using GetX and Get.arguments is always returning null. I am defining my routes in route_generator.dart <pre class="lang-dart pre...

Managing routing and state from a central place in flutter

I have this simple flutter app that consists of just two pages linked with the router which is defined in the main() function. However, i would like to isolate my clas...

When to use new Screens in Flutter instead of TabBarView

I am fairly new to Flutter and I try to understand when and why it would be necessary to navigate to a new screen. Most apps keep the same AppBar, Drawer &amp; BottomN...

Flutter Web Navigation - Change container content based on named Route

I have been searching for tutorial for Flutter Web with Navigation Menu (Side, bottom or top) and named routes. Basically, I want to have the Menu and the MenuContent...

Recreate crossDissolve navigation in Flutter

How can i recreate the <code>modalTransitionStyle = .crossDissolve</code> from iOS when navigating between two pages in Flutter using a Route.

Pass Navigator function (any callback) to a StatelessWidget to use it in onPressed

I am lacking experience in Flutter to understand how to pass a callback funciton into a Widget: Custom button : <pre><code>class IconButtonWidget extends St...

Google Cloud Functions: Call route from within client

I had already read this excellent answer: <a href="https://stackoverflow.com/questions/42145759/do-google-cloud-platform-http-functions-support-route-parameters">Do Go...

Advantage from static routing to dynamic routing on Flutter

I can see that <code>MaterialApp</code> app can receive routes. <h1>1. Static routing</h1> <pre class="lang-dart prettyprint-override"><code>class MyApp extends St...

How to set dynamic initialRoute based on sharedPrefs value in flutter?

Currently, I am working around routes and i wanted to set initialRoute in my app based on sharedPreferences value. I am using Statedulwidget for my MaterialApp...

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...