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
1 answer

Flutter argument persistence between pushed routes

so I'm at a cross roads on the next app I'm doing. I have four routes, each of which add a new argument that will all be tied together at a final screen. So let's say there's four routes and I called these three functions (starting at route…
Abe
  • 421
  • 3
  • 11
0
votes
0 answers

how to Navigate to a particular bottom navigation item in a new page onpress of a button in the previous page in Flutter

I have many pages with the same bottom navigation bar title in my flutter app. For example, let's say I have two pages: A and B and page A doesn't have bottom navigation but page B has one with tree items. So I want to navigate from A to B but…
b_diouf
  • 39
  • 3
  • 11
0
votes
3 answers

How can I navigate to another page after CircularProgressIndicator completed in Flutter?

Hello I am new in Flutter and I am currently building a chat application. I got a profile maker screen where the user can upload an image to set their avatar. I am using CircularProgressIndicator() to show an uploading screen. I want to know that…
0
votes
1 answer

How to maintain state of pages in TabBarView in Flutter?

I have used TabBarView as my page holder for BottomNavigationBar instead of Indexed stack. But this does refresh the page every time tab is changed. The state is not maintained. What to do?
0
votes
1 answer

How can flutter navigator continuously return data?

E.g: 1.in ListPage: Navigator.of(context).pushNamed (DetailPage) 2.in DetailPage: Navigator.of(context).pushNamed (EditPage) 3.in EditPage: Navigator.of(context).pop(needRefresh) E.g: There are three pages: ListPage-> DetailPage-> EditPage If…
henjue
  • 29
  • 2
0
votes
0 answers

Open a file in my flutter app from outside

I wanted to ask if anyone knows how to handle other apps when they press share, my flutter app appears there to open that file (like when you share a pdf on ios and appears whatsapp). Don't know if it's possible. Looking for ios way, for android we…
Juan Jose Rodrigo
  • 429
  • 2
  • 6
  • 14
0
votes
1 answer

Flutter: Child bloc is initializing, but data is not stored yet in shared_preferences

I use for my app jwt authenctication. I have the main page with bloc pattern, which choose page to load it on screen (LoginScreen or AppScreen). LoginScreen have his own bloc pattern, also AppScreen. When I write login and password and click login,…
TRUSTMEIMJEDI
  • 81
  • 1
  • 7
0
votes
1 answer

How do you reuse Flutter views created with MaterialPageRoute builder?

How do you reuse Flutter views created with MaterialPageRoute builder? Currently new views are created in the widget tree whenever Navigator.pushReplacementNamed is called. e.g. The following code will create 4 views in the widget…
Sunny
  • 1
  • 1
  • 1
0
votes
2 answers

Navigation to sub-screen from BottomNavigationBar-sceeen in Flutter

I´m currently working on my first simple flutter application and am trying to figure our the best approach to handle the navigation between screens. Already Possible: Navigation through screens with BottomNavigationBar +…
LukyFoggy
  • 519
  • 8
  • 31
0
votes
0 answers

Flutter Navigator push data from firebase

We are trying to get data from firebase which we have currently being rendered within a grid view, but I want to be able to click on the item within the grid view and read more about it. This is what I have so far and the error I am getting in…
Boss Nass
  • 3,384
  • 9
  • 48
  • 90
0
votes
1 answer

How do I handle returning to the previous page in Flutter?

How do I handle returning to the previous page in Flutter? If I did Navigator.push, how to perform some actions when second page gets closed?
Wynell
  • 633
  • 1
  • 8
  • 15
0
votes
1 answer

How to get the Widget Class name from the builder object in MaterialPageRoute

I would like to have a custom MaterialPageRoute where the RouteSettings object would be assigned with a default name which should be the builder i.e. widget class name. I have overrides the method as below and don't understand how to get the class…
Yakub Pasha
  • 483
  • 1
  • 5
  • 19
0
votes
2 answers

nested navigator pushedNamedAndRemoveUntil predicate route is null

I'm trying to pushedNamedAndRemoveUntil but I'm noticing that my predicate keeps returning null as the route. My code: Navigator.pushNamedAndRemoveUntil( context, 'search/studyPage', (Route route) { print(route); return false;…
wei
  • 557
  • 1
  • 10
  • 24
0
votes
1 answer

Navigation.pop() and Navigation.push() acting strangely

I'm creating a Sign-Up section in my application using Flutter and I'm trying to do the following: The user clicks Sign-Up The user presses the back button at any stage during sign-up Then an alert dialog pops up asking if the user really wants…
UndercoverCoder
  • 953
  • 3
  • 13
  • 28
0
votes
1 answer

Flutter Navigation showing route as /

I have a card with PopupMenuButton that I can tap to perform the 'copy' action. I can also perform the same action from the card details page. The problem I have is to get back to the home page I have to cater for both paths. So if the action is…
coding1223322
  • 461
  • 11
  • 26