skip to Main Content

Go router navigation not working on drawer flutter

I was trying to shift from navigator the go_router package for my side drawer but it is not responding or redirecting them to the pages...here is the code from my homepage.dart import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:go_router/go_router.dart'; import 'package:shared_preferences/shared_preferences.dart'; class…

VIEW QUESTION

Flutter GoRouter with Firebase Auth

I am using the go_router and Firebase Auth for my web application but can not properly set it up. I tried this: class AuthService { static final FirebaseAuth _firebaseAuth = FirebaseAuth.instance; static User? get currentUser => FirebaseAuth.instance.currentUser; static bool isLoggedIn()…

VIEW QUESTION

Flutter Go_router, save history of routes

I have this code of router final _router = GoRouter( routes: [ GoRoute( path: '/', builder: (BuildContext context, GoRouterState state) { return const LoginScreenWidget(); }, routes: <RouteBase>[ GoRoute( path: 'main', builder: (BuildContext context, GoRouterState state) { return const MainScreenWidget(); },…

VIEW QUESTION
Back To Top
Search