added splash screen

This commit is contained in:
amirrezaghabeli
2025-09-22 16:04:49 +03:30
parent 197ad18618
commit f1214d8a28
14 changed files with 253 additions and 12 deletions
+28
View File
@@ -8,6 +8,7 @@ part of 'app_routes.dart';
List<RouteBase> get $appRoutes => [
$loginScreenRoute,
$splashScreenRoute,
$appShellRouteData,
$yourTendersRouteData,
$finalCompletionOfDocumentsRouteData,
@@ -43,6 +44,33 @@ mixin _$LoginScreenRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
RouteBase get $splashScreenRoute => GoRouteData.$route(
path: '/splash',
factory: _$SplashScreenRoute._fromState,
);
mixin _$SplashScreenRoute on GoRouteData {
static SplashScreenRoute _fromState(GoRouterState state) =>
const SplashScreenRoute();
@override
String get location => GoRouteData.$location('/splash');
@override
void go(BuildContext context) => context.go(location);
@override
Future<T?> push<T>(BuildContext context) => context.push<T>(location);
@override
void pushReplacement(BuildContext context) =>
context.pushReplacement(location);
@override
void replace(BuildContext context) => context.replace(location);
}
RouteBase get $appShellRouteData => StatefulShellRouteData.$route(
parentNavigatorKey: AppShellRouteData.$parentNavigatorKey,
factory: $AppShellRouteDataExtension._fromState,