Navigator in Flutter Web without Click Event

I am trying to navigate to another page from landing page without click event and keep these pages in stack. I wrote codes below: <pre><code> class LandingPape...

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 initial routes with parameters

I need to pass an argument for my <code>initialRoute</code>. I found this <a href="https://github.com/flutter/flutter/issues/29167" rel="nofollow noreferrer">issue</a>...

How to reset the base route in my Flutter App - that is pop any routes and replace it with a new one using Navigator

New to Flutter to please forgive me if this is obvious, but I have read the documentation and tried a bunch of the Navigator options but none of them work as I would l...

NoSuchMethodError: The method ancestorStateOfType was called on null with await and async method

i would like to create a loader data, at the end the load of the data the screen will automaticly change the screen (with Navigator). BUT i have some problem.<...

Flutter: how to pass values from one file to another without Navigator?

I having some troubles currently. I want to pass a String variable (the index of a list String) from one dart file to another but the only way I know is using Navigato...

Correct Flutter navigation practice in Drawer

Quick question on navigation between Flutter screens from a re-usable drawer in Material App. I have a drawer set up with two navigation options in a list to Sc...

How can I reload a FutureBuilder widget after using Navigator.pop() in another one

So basically I have a simple widget that uses FutureBuilder to build my widget containing a List of data that can be modified in the database and here is the code:...

Why Flutter rerenders widget which contains a TextFormField with own key?

<pre><code>Doctor summary (to see all details, run flutter doctor -v): [v] Flutter (Channel dev, v1.2.0, on Microsoft Windows [Version 10.0.17763.253], locale ru-RU) [v]...

Why Bottom Tab is still visible when I navigate to another screen?

<a href="https://i.stack.imgur.com/Tgxz7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tgxz7.jpg" alt="enter image description here" /></a> <p...

Navigator.pop from a FutureBuilder

I have a first screen which ask the user to enter to input, then when the users clicks on a button, the app goes on a second screen which uses a FutureBuilder to call...

Flutter return data when ModalBottomSheet is dismissed

I'm displaying a ModelBottomSheet when the FAB is pressed on a screen. When the ModelBottomSheet is popped I run a method with the data returned from the ModelBottomSh...

Get navigator argument with ModalRoute Flutter without listen/subcribe

I can already take an argument from the navigator. this is the code: <pre><code> import 'package:flutter/material.dart'; void main() =&gt; runApp(MyApp());...

Flutter: Move to a new screen without providing navigate back to previous screen

I'm implementing an authentication flow in my Flutter app. After a sign in attempt, the CheckAuth <em>(which checks whether a user is signed in or not and then...

How to pop last three routes from the navigator stack in flutter

<strong>Scenario</strong> I'm navigating user to loginScreen/signUpScreen from different screens (Say destinationScreen, attractionScreens, reviewScreen etc) i...