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
5
votes
0 answers

Should flutter routing be used in nested routing or should Page View be used instead?

Coming from a web background (angular), I'm really confused about flutter routing. It seems like I'm not alone (1, 2, ...). Judging by the relative complexity of the answers and the various bugs associated with some of them, I'm wondering if I'm…
Ced
  • 15,847
  • 14
  • 87
  • 146
5
votes
0 answers

Flutter web Navigator forward button

My problem This problem is about Flutter web's navigation. When working with the onGenerateRoute function, the navigation on the web is "near" the vanilla experience. We can pop route with the back button of the browser, push a new route and get…
NeroThroN
  • 81
  • 2
5
votes
1 answer

Possible to copy iOS App Store transition using Flutter?

Is it possible to copy the transition effect of iOS App Store using Flutter? I tried using Hero Animation by placing two tags into the root layout of both widgets, but animation looks janky or not what I expected. But good thing about this is I am…
fadhli-sulaimi
  • 686
  • 12
  • 17
5
votes
5 answers

Navigation rail with flutter

The material design guidelines includes a component called Navigation rail. How to create Navigation rail with flutter?
Darish
  • 11,032
  • 5
  • 50
  • 70
5
votes
2 answers

Remove Overlay on Navigation in Flutter

I am using Overlay.of(context) to display some contents on button click. But there are two problems: The overlay is not removed while navigating to next screen. Dropdown buttons are used inside it. But the menu items are shown below it. Here is…
Bishal
  • 71
  • 1
  • 8
5
votes
1 answer

Navigate while Widget state build is being executed

I'm building a simple Flutter app. Its launch screen determines if the user if logged in or not, and depending on that redirects to the login or main/home screen afterwards. My Launch screen is a StatefulWidget, its state is shown below. It uses a…
Husayn Hakeem
  • 4,184
  • 1
  • 16
  • 31
5
votes
2 answers

Navigating to another page from drawer menu and setting title to app bar

i am new to flutter and would like someone to help me with code i found in github that i would like to use. take a look at the link below https://github.com/JohannesMilke/drawer_example this is an example of a navigational drawer. i like the way…
yoohoo
  • 1,147
  • 4
  • 22
  • 39
5
votes
0 answers

Add Route to Navigation Stack without Pushing the Screens to the Stack

I want to add some routes to the Navigation Stack but don't want to Push those Screens. Is it possible to give a Stack in flutter navigation? For example -- I have 3 screens. A, B and C. So directly I want to go to the screen C and back button on…
devashish-patel
  • 663
  • 1
  • 7
  • 15
5
votes
1 answer

How to implement Navigation stack like in Youtube and Instagram Apps?

I am trying to make an app with Flutter which use Bottom Navigation Bars. I want to keep my previous visited screens in navigation stack as in Youtube and Instagram apps. For example , assume that I have 3 different bottom navigation bars (A,B and…
safaer
  • 191
  • 1
  • 2
  • 11
4
votes
3 answers

Flutter : Hot reload / Hot restart showing white screen with debug banner?

In my flutter app , when I try to hot reload or hot restart , after process complete , the reloaded screen shows for a second and then went whole white only the Debug banner in top right side showing There is no errors in the console. It just says…
RagAnt
  • 1,064
  • 2
  • 17
  • 35
4
votes
0 answers

How do I declaratively push BottomSheet with Navigator 2.0?

I'm new to Navigator 2.0 in Flutter, and now I'm trying to achieve BottomSheet behavior using declarative approach. Unfortunately, I only managed to come up with quite a cumbersome way to do that so I'm wondering if there's an easier way. I'm…
4
votes
2 answers

Update Scaffold-Properties in nested CupertinoPageScaffold in Flutter

How can I update some properties of the roots scaffold in a child widget(page). Here is a snippet from my root scaffold. CupertinoPageScaffold( resizeToAvoidBottomInset: state.resizeToAvoidBottomInsets, //update this here …
fräfrö
  • 71
  • 1
  • 5
4
votes
1 answer

Flutter Navigator 2.0 does not transition between root navigator pages

I'm using Navigator 2.0 API to handle navigation in my app, and I have problem with top-most RouterDelegate (the nested RouterDelegates underneath it work fine). Depending on authentication state I want to show Splash Screen, Login Screen, or Home…
4
votes
1 answer

Flutter Getx BottomNavigation with GetPage

I'm using getx navigation with page binding - for example: GetPage( name: Routes.pageone, page: () => PageOne(), binding: PageOneBinding(), ), GetPage( name: Routes.pagetwo, page: () => PageTwo(), binding: PageTwoBinding(), ), GetPage( …
4
votes
1 answer

Why the Hero Widget doesn't work in Flutter?

I'm developping a Flutter app with the GetX state manager. I have 2 screens and I want a hero animation between them. Here is my hero widget, I use it in my 2 screens (exactly the same) : Widget heroTest() { timeDilation = 2; // This solution…
Aymeric Le Feyer
  • 245
  • 2
  • 12