feat : new auth in chicken

This commit is contained in:
2025-08-02 15:09:06 +03:30
parent fae6703d8d
commit 8b698a8498
27 changed files with 1115 additions and 109 deletions

View File

@@ -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();