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
2 answers

Provider not accesable when Navigate to new screen

have a problem that I'm sitting on couple of days now. have an app where: depending of AUTH state, 'LoginScreen' or 'MainScreen' is Shown. in MainScreen I setUp bottomNavigation with screens (HomeScreen, ShoppingScreen,MyFavorites) I set up there…
pb4now
  • 1,305
  • 4
  • 18
  • 45
0
votes
1 answer

Remove all local history entries in Flutter

I have a StatefulWidget that adds to its Navigator's local history via ModalRoute.of(context).addLocalHistoryEntry(). When certain changes occur, I want to reset the widget's state and clear any local history that it added. I don't see any API on…
Jacob Phillips
  • 8,841
  • 3
  • 51
  • 66
0
votes
1 answer

Flutter, Inconsistent Widget build

So I have a Form Screen (With its own scaffold) like this : class InputForm extends StatelessWidget { final Receipt initialReceipt; InputForm({this.initialReceipt}){ print("InputForm() called"); } @override Widget build(BuildContext…
erluxman
  • 18,155
  • 20
  • 92
  • 126
0
votes
1 answer

Navigation & Routing Flutter

I just started flutter and trying to build a bottom navigation bar that navigates between 4 pages: '.../pages/home.dart'; '.../pages/history.dart'; '.../pages/search.dart'; '.../pages/bookmarks.dart'; The home page should be always on display as…
Thorvald
  • 3,424
  • 6
  • 40
  • 66
0
votes
1 answer

Flutter: is there any navigation and routing cheat sheet?

as I'm coding some app I was wondering if there's any cheat sheet explaining navigation and routing options I have and when should I use the specific one (for which usecase its the best solution)? For example I'm creating a form, when I press the…
Bartosz Jarosz
  • 188
  • 1
  • 5
0
votes
1 answer

the argument type 'bool' can't be assigned to the parameter type 'voidcallback()'

I create common alertbox and passed arguments. but when try tp pass onPressed method this error is coming. Another exception was thrown: type 'bool' is not a subtype of type '() => void' Widget class return showDialogPop( …
user9139407
  • 964
  • 1
  • 12
  • 25
0
votes
1 answer

How to use this kind of method in global?

I checked mobile is connect to the internet or not. I used this way. It's working very well. But I used this way every classes. same code duplicated. I don't understand, How to use this kind of code in global. initialize variable bool isOffline =…
user9139407
  • 964
  • 1
  • 12
  • 25
0
votes
2 answers

How navigate to another screen

I have a next RaisedButton to go a next screen called DetailOracion. Based on the example of Flutter to push new screen but doest work. Widget build(BuildContext context) { return MaterialApp( home: Scaffold( backgroundColor:…
Alexis Olveres
  • 161
  • 3
  • 11
0
votes
0 answers

Flutter List Map not being passed between screens on named route navigation

I am passing data between screens of an app. I have been able to do this successfully with strings but when it comes to sending a List map the Navigator.pushNamed does nothing and doesn't throw any error. I have my named routes set up like below, in…
Nicholas Muir
  • 2,897
  • 8
  • 39
  • 89
0
votes
1 answer

How to refresh page in flutter

I am new to flutter development. I wanted to achieve android onResume() functionality in flutter. I was handling that using then() like this Navigator.push(context, MaterialPageRoute(builder: (_) => PageTwo())) .then((value) { …
Vignesh KM
  • 1,979
  • 1
  • 18
  • 24
0
votes
1 answer

how to disable a button after click first time

how to disable a button after click first time?
user11065582
0
votes
1 answer

How to navigate to another page but show information according to the items on my list that was pressed?

I'm trying to create my first app with flutter, it's a basic app to show items on a list and you tap on them to get the information. I've created the list and the contact page, I can navigate from one page to the other but I'm stuck now on how to…
0
votes
0 answers

How can I use the scope model to have my inherited widgets all persistent during bottom navigation bar using flutter?

I am learning new features about the flutter framework but what I am interested in right now is to know how I can keep my inherited widgets using the scope model to keep all my pages persistent during bottom navigation bar page navigation?
0
votes
0 answers

Pop and Push a Dynamic Route does not work in Flutter

Below is the sequence of pages that I have: Upload Page -> User selects some options Form Page -> User enters value in form and click Upload When upload is done, the user is taken back to Upload page by using the below code. if…
Purus
  • 5,701
  • 9
  • 50
  • 89
0
votes
5 answers

How solve problem Appbar icon clicked to navigate

I try to develop flutter application. In this application I used Appbar with user icon to navigate another page. Now I am clicked that icon(person icon) it shows error. . It has not proper documentation though internet. I couldn't found answer.…