flutter-navigation Questions
4
Solved
In my Flutter application, I'm using the go_router package to manage routes and Firebase Authentication for user authentication. I have several screens that require users to be authenticated to acc...
Polack asked 7/10, 2023 at 11:37
2
I am working on the Flutter web and using go_router for navigation.
Expectation:
From the initial route, When the user tries to navigate back using the browser back button or reload the page, an al...
Fulfil asked 7/9, 2022 at 7:15
6
Not sure how to clear the stack and route to a new page after implementing the Flutter 2.0 routing.
The following isn't working:
Navigator.of(context).pushAndRemoveUntil(MaterialPageRoute(builder: ...
Crystie asked 1/6, 2021 at 5:57
4
Implementing navigation based on auth changes using flutter_bloc and go_router.
What i need to do is at start if User is authenticated it should be redirected to HomeScreen with the ability to navi...
Cycloid asked 13/5, 2023 at 2:5
3
Solved
I am facing a use case I don't know the proper way to deal with.
Please see here the simple application I have made: https://dartpad.dev/?id=5a00b315613990d8c3ead6e26bc2df4c
This tries to simulate ...
Injurious asked 20/7, 2023 at 14:26
4
I'm new to flutter and I'm working on an App that have multiple screens.
I would like to know to stop flutter from creating multiple screens of the same route,
for example I have Page 1 and Page ...
Trotskyism asked 23/12, 2019 at 14:56
9
I have built an app where I use flutter_bloc. i want to use go_router for navigation.but for dynamic routing how can i use GoRouter refreshListener parameter with flutter_bloc
GoRouter(
routes: [
...
Cripps asked 12/12, 2021 at 10:26
5
Solved
I have this problem when I have Nested Navigators. So something like,
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Dem...
Provincialism asked 18/3, 2019 at 1:32
8
Solved
I am below code which given in flutter documentation for page routing
// Within the `FirstRoute` widget
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => Second...
Minimalist asked 3/9, 2019 at 13:46
1
I'm using go_router on flutter, and I have a root routes and a shell route that contains a bottom nav bar on all sub routes. And I want to push a page that is outside of the shell route and I want ...
Armond asked 11/9, 2023 at 18:37
1
Solved
How best to implement the following: I need to show a regular window on a smartphone, and show the same window on a tablet as a popup dialog. There are several such windows in different places. Whi...
Asphyxiant asked 29/9, 2020 at 19:10
4
I used to use IconButton's onpressed to navigate to the settings page from my AppBar which worked.
Now I am trying to trigger the navigation from a PopupMenuItem's onTap but the page does not navig...
Malamut asked 21/10, 2021 at 19:28
4
Solved
In Flutter, all Navigator functions that push a new element onto the navigation stack return a Future as it's possible for the caller to wait for the execution and handle the result.
I make heavy u...
Boreas asked 6/10, 2021 at 13:16
1
My app structure can be like this:
home/folder/:fid/player
home/folder/:fid/folder/:fid/player
home/folder/:fid/folder/:fid/folder/:fid/player
with nested folders that can open other folders (a fo...
Elli asked 12/3, 2022 at 14:40
13
Solved
As I'm learning Flutter I've come to navigation. I want to pass data between screens similarly to passing data between Activities in Android and passing data between View Controllers in iOS. How do...
Limited asked 20/12, 2018 at 1:21
7
I cannot understand the reason why someone should use named routes, with Navigator.pushNamed(), instead of the normal way with Navigator.push().
The tutorial page states that:
if we need to n...
Audrit asked 1/4, 2019 at 22:12
1
I use to pass a BLoC instance to a new route like so :
Navigator.of(context).push<void(FavoriteDetailPage.route(_favoriteBloc));
class FavoriteDetailPage extends StatelessWidget {
const Favori...
Cannonry asked 26/11, 2022 at 11:38
1
I'm using Navigation 2 and setUrlStrategy(PathUrlStrategy());
I added WillPopScope but the onWillPop is not called when clicking the browser's back button.
Widget build(context) {
return WillPopSc...
Lidstone asked 29/4, 2021 at 22:4
1
Solved
I'm using go_router to build an application that
does "dummy" pushes of routes (a bit like Twitter). It is possible to start with a page /a ,push /b, then /c, ... and then push again /a.
...
Penal asked 4/7, 2022 at 4:27
1
I'm currently working on updating a Flutter Web app to support sharing pages via URLs. I currently have a screen that uses a TabBar, and shows different views based on the selected tab. I want to b...
Kiele asked 14/2, 2022 at 17:53
12
Solved
I am creating a multi-paged app on flutter. When I am using the navigation in it, I am getting a black screen.
import 'package:flutter/material.dart';
void main() => runApp(MyHomePage());
...
Seamark asked 24/4, 2020 at 8:55
3
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 showi...
Marrilee asked 20/1, 2022 at 17:43
5
Solved
In my app, i am trying to create a comments section. In this section, i want a user to be able to reply to another user's comment in a fashion akin to the YouTube app. I have managed to create a mo...
Oudh asked 26/8, 2020 at 17:41
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 s...
Lassitude asked 25/12, 2021 at 5:50
2
The usual behaviour for the app is to exit, when back button is pressed. What I want is for the app to go to background without exiting, when back button is pressed. Just like what happens when we ...
Klein asked 15/6, 2019 at 1:25
1 Next >
© 2022 - 2025 — McMap. All rights reserved.