feat:mai page done

This commit is contained in:
jahongireshonqulov
2025-11-01 14:30:56 +05:00
parent 4acc409de0
commit 44878e79b3
81 changed files with 4976 additions and 244 deletions

View File

@@ -19,7 +19,7 @@ class SplashBloc extends Bloc<SplashEvent, SplashState> {
final token = _storageService.getString(key: AppLocaleKeys.token);
log("Token:$token");
if (token != null) {
emit(state.copyWith(status: RequestStatus.error));
emit(state.copyWith(status: RequestStatus.loaded));
} else {
emit(state.copyWith(status: RequestStatus.error));
}

View File

@@ -14,6 +14,10 @@ class SplashPage extends StatelessWidget {
if (state.status.isError()) {
context.go(Routes.onBoarding);
}
if (state.status.isLoaded()) {
context.go(Routes.main);
}
},
child: WLayout(
bottom: false,