Questions tagged [flutter-navigation]

For questions relating to navigation methods in Flutter, like the Navigator class. Use this tag in combination with the general [flutter] tag. If your question applies to Flutter more generally, use the [flutter] tag only.

Flutter allows cross-platform development targeting both iOS and Android from a single code base. Flutter contains modules to implement navigation for mobile applications.

710 questions
0
votes
0 answers

Flutter, navigation animation not smooth when I was trying to fetch http response during the animation

Maybe the title is a bit confuse, here is the problem. When I navigate to a new page, I will send an http request and show the loading spinner, the page content will be replaced when I get the http response back. But sometimes, the http response…
0
votes
1 answer

How to open a Flutter dialog no matter where the user is within the app

I'm working on a Flutter project where I need the ability to show the user a dialog no matter where they happen to be within the app. Currently I'm executing the showDialog() function in the root level widget that main() kicks off. That widget…
KevinM
  • 1,799
  • 4
  • 28
  • 58
-1
votes
2 answers

How to add ontap function to my bottom nav bar

I want to add on tap function to my bottom nav bar items, My code looks like this: BottomNavigationBarItem( icon: Icon( Icons.settings, color: Colors.grey, ) )
-1
votes
1 answer

When I click back button WillPopScope is not working in flutter?

I am using WillPopScope and to navigate I am using Navigator.pushNamed(), so that onWillPop is not working fine, if I remove pushNamed and add pushAndRemoveUntil and make route false it works. But, I do not need like that I need to use pushNamed.…
-1
votes
2 answers

How to redirect to the next page without pressing a button with flutter?

I want to move to the next page without clicking on button with flutter. Juste after changing the value of a button, I have to redirect to the next page after some delay without any self interaction. this is the code : initialData:…
rania
  • 63
  • 6
-1
votes
1 answer

Is there a way to make a separate navigation inside a stream builder - Flutter

Basically I have a streambuilder as my “home” in main.dart that returns AuthGate (another stream builder) if there’s a network connection or a separate screen if there’s no connection. This works most of the time but when I use…
Globe
  • 514
  • 3
  • 17
-1
votes
1 answer

Best way of passing object information throw pages

This question probably already exist but its too specific and hard to seach for it. So, imagine that we have a ecommerce application. On page 1 we have a list of products. And when its tapped, we go to a page 2, where it holds more information about…
-1
votes
1 answer

Flutter Drawer Navigation

I have a list of Screens in a custom drawer. Screen 1, Screen 2, Screen 3 What is the proper way of navigating from Screen 1 to Screen 2 on push of a button. Currently, I am losing the hamburger (the drawer button) option when I push or push…
Ganesh
  • 1
  • 1
-1
votes
4 answers

Preserve state and prevent initState of been called more than once

I have 3 page (all statefull widgets) : Home page Weather page Setting page The things is when i'm going from home page to weather page with a "Navigator.pushNamed" and going from the weather page to home page with a "Navigator.pop", the next time…
Jeremy Dormevil
  • 430
  • 1
  • 8
  • 22
-1
votes
1 answer

Flutter web - Set state based on url

I am developing a flutter website with a persistent navigation bar on top that displays the current page the user is on, by adding a border around the title of the active page as shown below. I am using url navigation on the website, so the user…
-1
votes
1 answer

error: The argument type 'Null' can't be assigned to the parameter type 'Map'

I am writing my first Flutter App with some online tutorials and I found error that I can't fix it. I am trying to add Navigation by Navigator, but I can't understand why it doesn't work. Once I am using Navigator in GestureDetector and it works…
Grimmer
  • 21
  • 4
-1
votes
1 answer

How to navigate pages which are already open [Flutter]?

I have a scenario where I have PageA, PageB, PageC. From PageA I can go to PageB, from PageB I can go to PageC, from PageC I have to go to PageB where clicking on back of PageB should land me on PageC. The problem here is this can open many…
Zayd Khan
  • 124
  • 2
  • 11
-1
votes
1 answer

Navigating to the updated page in flutter

When I insert data from other page and pop this page to go back on the listing page, I have to refresh the listing page to get the updated list of data. I want to go back to the updated version of page without pressing refresh button. I am using…
-1
votes
1 answer

Navigating to a new page with button class

This is my buttons class. I want to use its on pressed function to navigate to another page. class DigerButtonu extends StatelessWidget { final String butonyazisi; final IconData butoniconu; final Function butonfonksiyonu; const…
-1
votes
2 answers

Flutter Routes get return black screen

My Route is main -> Screen 1 -> Screen 2-> Tab Screen Tab Screen Contain Two Tab : Tab1 , Tab2 How can jump to Screen 1 on using submit button in Tab1…
1 2 3
47
48