Initial commit
This commit is contained in:
191
lib/core/router/app_router.gr.dart
Normal file
191
lib/core/router/app_router.gr.dart
Normal file
@@ -0,0 +1,191 @@
|
||||
// dart format width=80
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
// **************************************************************************
|
||||
// AutoRouterGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// coverage:ignore-file
|
||||
|
||||
part of 'app_router.dart';
|
||||
|
||||
/// generated route for
|
||||
/// [AnalysisPage]
|
||||
class AnalysisRoute extends PageRouteInfo<void> {
|
||||
const AnalysisRoute({List<PageRouteInfo>? children})
|
||||
: super(AnalysisRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AnalysisRoute';
|
||||
|
||||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const AnalysisPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [CalendarPage]
|
||||
class CalendarRoute extends PageRouteInfo<void> {
|
||||
const CalendarRoute({List<PageRouteInfo>? children})
|
||||
: super(CalendarRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'CalendarRoute';
|
||||
|
||||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const CalendarPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [ChatPage]
|
||||
class ChatRoute extends PageRouteInfo<void> {
|
||||
const ChatRoute({List<PageRouteInfo>? children})
|
||||
: super(ChatRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ChatRoute';
|
||||
|
||||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const ChatPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [HomePage]
|
||||
class HomeRoute extends PageRouteInfo<void> {
|
||||
const HomeRoute({List<PageRouteInfo>? children})
|
||||
: super(HomeRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'HomeRoute';
|
||||
|
||||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const HomePage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [PlanEditorPage]
|
||||
class PlanEditorRoute extends PageRouteInfo<PlanEditorRouteArgs> {
|
||||
PlanEditorRoute({
|
||||
Key? key,
|
||||
required String planId,
|
||||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
PlanEditorRoute.name,
|
||||
args: PlanEditorRouteArgs(key: key, planId: planId),
|
||||
rawPathParams: {'planId': planId},
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
static const String name = 'PlanEditorRoute';
|
||||
|
||||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final pathParams = data.inheritedPathParams;
|
||||
final args = data.argsAs<PlanEditorRouteArgs>(
|
||||
orElse: () =>
|
||||
PlanEditorRouteArgs(planId: pathParams.getString('planId')),
|
||||
);
|
||||
return PlanEditorPage(key: args.key, planId: args.planId);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class PlanEditorRouteArgs {
|
||||
const PlanEditorRouteArgs({this.key, required this.planId});
|
||||
|
||||
final Key? key;
|
||||
|
||||
final String planId;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'PlanEditorRouteArgs{key: $key, planId: $planId}';
|
||||
}
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [ShellPage]
|
||||
class ShellRoute extends PageRouteInfo<void> {
|
||||
const ShellRoute({List<PageRouteInfo>? children})
|
||||
: super(ShellRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ShellRoute';
|
||||
|
||||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const ShellPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [TrainingsPage]
|
||||
class TrainingsRoute extends PageRouteInfo<void> {
|
||||
const TrainingsRoute({List<PageRouteInfo>? children})
|
||||
: super(TrainingsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'TrainingsRoute';
|
||||
|
||||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const TrainingsPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [WorkoutSessionPage]
|
||||
class WorkoutSessionRoute extends PageRouteInfo<WorkoutSessionRouteArgs> {
|
||||
WorkoutSessionRoute({
|
||||
Key? key,
|
||||
required String planId,
|
||||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
WorkoutSessionRoute.name,
|
||||
args: WorkoutSessionRouteArgs(key: key, planId: planId),
|
||||
rawPathParams: {'planId': planId},
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
static const String name = 'WorkoutSessionRoute';
|
||||
|
||||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final pathParams = data.inheritedPathParams;
|
||||
final args = data.argsAs<WorkoutSessionRouteArgs>(
|
||||
orElse: () =>
|
||||
WorkoutSessionRouteArgs(planId: pathParams.getString('planId')),
|
||||
);
|
||||
return WorkoutSessionPage(key: args.key, planId: args.planId);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class WorkoutSessionRouteArgs {
|
||||
const WorkoutSessionRouteArgs({this.key, required this.planId});
|
||||
|
||||
final Key? key;
|
||||
|
||||
final String planId;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'WorkoutSessionRouteArgs{key: $key, planId: $planId}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user