added splash screen
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user