feat : new auth in chicken
This commit is contained in:
@@ -16,10 +16,11 @@ class CustomNavigationObserver extends NavigatorObserver {
|
||||
void didPush(Route route, Route? previousRoute) async {
|
||||
super.didPush(route, previousRoute);
|
||||
final routeName = route.settings.name;
|
||||
if (!_isWorkDone && routeName == ChickenRoutes.init) {
|
||||
if (!_isWorkDone &&( routeName == ChickenRoutes.init || routeName == ChickenRoutes.auth)) {
|
||||
_isWorkDone = true;
|
||||
setupChickenDI();
|
||||
} else if (!_isWorkDone && (routeName == InspectionRoutes.init || routeName == InspectionRoutes.auth)) {
|
||||
await setupChickenDI();
|
||||
} else if (!_isWorkDone &&
|
||||
(routeName == InspectionRoutes.init || routeName == InspectionRoutes.auth)) {
|
||||
_isWorkDone = true;
|
||||
|
||||
await setupInspectionDI();
|
||||
|
||||
Reference in New Issue
Block a user