Questions tagged [auto-route]
21 questions
1
vote
0 answers
Need help creating a persistent bottom navigation bar in inner pages using auto_route: ^7.4.0 in Flutter
Hello Stack Overflow community,
I'm currently working on a project and I'm facing an issue regarding the implementation of a persistent bottom navigation bar using auto_route: ^7.4.0 in my Flutter application. I've searched extensively for a…

Arjun Ranjith
- 209
- 1
- 5
1
vote
0 answers
What is the correct approach to navigate between two inner routes using auto_route?
Expected behavior. I have a product screen. Let's say it's one of the most important pages in my app. Normal way to get to this screen - click in a product at the ProductListPage. Also I would like to be able to get there from my user profile when…

Oleksandr
- 1,396
- 1
- 8
- 14
1
vote
3 answers
To implement navigation guards using autoroute flutter
I'm trying to learn to auto_route and its features. Now I'm stuck in navigation guards, I'm using Riverpod for state management.
Here I wanted to implement an authGuard for navigating users to different screens if user is not logged in.
class…

Akhil
- 419
- 5
- 15
0
votes
0 answers
Autoroute Wrapper is getting called again if context.router.push(route) is used from a child widget of RoutePage
I recently started with AutoRoute and trying to make it work along with flutter_bloc.
I have followed the instructions from https://github.com/Milad-Akarie/auto_route_library/issues/1590 and able to make it work! However I am facing an issue if I…

Abhijit Mazumder
- 8,641
- 7
- 36
- 44
0
votes
0 answers
My widget tests is not correctly being set when using Auto_route package
I have a flutter project, and i am using auto_route: ^7.8.3 package for navigation i have set up a bottom nav bar with 4 tabs and a screen for each tab when i run it it works as i expect it,
my issue is i am trying to set up some widget test and get…

farooq
- 9
- 2
0
votes
0 answers
Auto_Route package on flutter pub dev is throwing an error anytime I tried try run my app
I woke up today to code and notice that any new project that I will create and try to you use auto_route package it gives me this strange error message but I have configured everything well, run flutter clean and all the possible cache clear…

TRI NI TY
- 1
- 1
0
votes
0 answers
Auto Router - Routes that are not home route doesn't work when I host the web app
I have built a web app using flutter, and I used auto router package to handle the routes. The app was working good on local host,but when I hosted it on the internet all the routes doesn't work except the home route. I don't what is actually the…
0
votes
1 answer
Flutter - AutoTabsRouter Nested Navigation
I have a flutter application using auto_route: ^7.8.0 that is setup with the following route structure:
import 'package:auto_route/auto_route.dart';
import 'app_router.gr.dart';
@AutoRouterConfig()
class AppRouter extends $AppRouter {
@override
…

diaruga11
- 11
- 3
0
votes
1 answer
Declarative Navigation using AutoRoute in Flutter
I'm trying to implement declarative navigation in my Flutter app using the AutoRoute package. I have a complex navigation structure defined in my AppRouter class, and I'm using the AuthCubit for managing user authentication status. I would like to…

Dominik
- 89
- 1
- 8
0
votes
0 answers
how to go subPage in flutter Auto_router
I configured the main page using 'AutoTabsScaffold'
And 'AppRouter' was designed in this way
I want to go to the subpage like this, but it doesn't work. What should I do?
I tried 'context.router.push ~', 'AutoRouter.of(context).push ~' but doesn't…

b0nsu
- 1
- 1
0
votes
1 answer
How to rebuild widget tree, swapping the wrapper of a route path
I am building a responsive app, using auto_route.
The application is a simple master/detail view. My requirement is that when in desktop mode, the master (list) will be displayed on the left, and the detail on the right, in a "split screen"…

Adam
- 4,159
- 4
- 32
- 53
0
votes
1 answer
Flutter Auto_Route migration from version 5.0.1 to 7.7.1 name problem
I've entered for the first time into Flutter on an already going on a project.
This project was using the auto_route plugin already, with multiple pages.
As a task, I needed to update the version of the plugin to the last one (now 7.7.1)
I used the…

Zannabrighel
- 1
- 1
0
votes
0 answers
flutter web back button not calling dispose (video keeps playing in the background)
Im writing a flutter web app using auto_route package for navigation. Im having a problem that when the back button is clicked on a page where a video is playing the sound keeps playing in the background. After some tests I discovered the dispose…

PortalGamesMais
- 70
- 1
- 9
0
votes
1 answer
How to pass bloc instance with auto_route guard latest version
I am migrating my project from 4.XX into the latest version now of auto_route package ^7.7.1 and what I got broke are the guards, before we passed it in the AppRouter( ...guards ) as prams and now that is not possible
So from the documentation, I…

hesham shawky
- 1,073
- 4
- 21
- 44
0
votes
0 answers
Get Auto_Route nested AutoRouter()'s route stack in parent page and rebuild when it changes, using Hooks/Riverpod
I'm trying to make a UI shell for my app using nested Auto_Route routes, and one thing I want the shell to have is a breadcrumb navigation bar to show the stack of routes and let you click on any to pop back to it.
So I have a simple AppShellPage.…

Tristan King
- 438
- 4
- 17