From 013b8828c8ce480c24cc220d2e8e25a1f7166629 Mon Sep 17 00:00:00 2001 From: Kosuke Saigusa Date: Mon, 7 Aug 2023 12:30:06 +0900 Subject: [PATCH] chore: update auto_route generated file --- .../lib/router/router.gr.dart | 171 ++++++++++-------- 1 file changed, 96 insertions(+), 75 deletions(-) diff --git a/packages/mottai_flutter_app/lib/router/router.gr.dart b/packages/mottai_flutter_app/lib/router/router.gr.dart index d033cce2..0ee4d785 100644 --- a/packages/mottai_flutter_app/lib/router/router.gr.dart +++ b/packages/mottai_flutter_app/lib/router/router.gr.dart @@ -8,8 +8,8 @@ // coverage:ignore-file // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:auto_route/auto_route.dart' as _i15; -import 'package:flutter/material.dart' as _i16; +import 'package:auto_route/auto_route.dart' as _i16; +import 'package:flutter/material.dart' as _i17; import 'package:mottai_flutter_app/chat/ui/chat_room.dart' as _i1; import 'package:mottai_flutter_app/chat/ui/chat_rooms.dart' as _i2; import 'package:mottai_flutter_app/development/color/ui/color.dart' as _i3; @@ -26,24 +26,25 @@ import 'package:mottai_flutter_app/development/image_picker/ui/image_picker_samp import 'package:mottai_flutter_app/development/in_review/ui/in_review.dart' as _i9; import 'package:mottai_flutter_app/development/sample_todo/ui/sample_todos.dart' - as _i12; -import 'package:mottai_flutter_app/development/sign_in/ui/sign_in.dart' as _i13; + as _i13; +import 'package:mottai_flutter_app/development/sign_in/ui/sign_in.dart' as _i14; import 'package:mottai_flutter_app/development/web_link/ui/web_link_stub.dart' - as _i14; + as _i15; import 'package:mottai_flutter_app/job/ui/job_detail.dart' as _i10; import 'package:mottai_flutter_app/map/ui/map.dart' as _i11; +import 'package:mottai_flutter_app/root/ui/root.dart' as _i12; -abstract class $AppRouter extends _i15.RootStackRouter { +abstract class $AppRouter extends _i16.RootStackRouter { $AppRouter({super.navigatorKey}); @override - final Map pagesMap = { + final Map pagesMap = { ChatRoomRoute.name: (routeData) { final pathParams = routeData.inheritedPathParams; final args = routeData.argsAs( orElse: () => ChatRoomRouteArgs( chatRoomId: pathParams.getString('chatRoomId'))); - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, child: _i1.ChatRoomPage( chatRoomId: args.chatRoomId, @@ -52,49 +53,49 @@ abstract class $AppRouter extends _i15.RootStackRouter { ); }, ChatRoomsRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, child: const _i2.ChatRoomsPage(), ); }, ColorRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, child: const _i3.ColorPage(), ); }, DevelopmentItemsRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, child: const _i4.DevelopmentItemsPage(), ); }, ForceUpdateSampleRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, child: const _i5.ForceUpdateSamplePage(), ); }, GenericImagesRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, child: const _i6.GenericImagesPage(), ); }, ImageDetailViewStubRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, child: const _i7.ImageDetailViewStubPage(), ); }, ImagePickerSampleRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, child: const _i8.ImagePickerSamplePage(), ); }, InReviewRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, child: const _i9.InReviewPage(), ); @@ -104,7 +105,7 @@ abstract class $AppRouter extends _i15.RootStackRouter { final args = routeData.argsAs( orElse: () => JobDetailRouteArgs(jobId: pathParams.getString('jobId'))); - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, child: _i10.JobDetailPage( jobId: args.jobId, @@ -113,27 +114,33 @@ abstract class $AppRouter extends _i15.RootStackRouter { ); }, MapRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, child: const _i11.MapPage(), ); }, + RootRoute.name: (routeData) { + return _i16.AutoRoutePage( + routeData: routeData, + child: const _i12.RootPage(), + ); + }, SampleTodosRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, - child: const _i12.SampleTodosPage(), + child: const _i13.SampleTodosPage(), ); }, SignInSampleRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, - child: const _i13.SignInSamplePage(), + child: const _i14.SignInSamplePage(), ); }, WebLinkStubRoute.name: (routeData) { - return _i15.AutoRoutePage( + return _i16.AutoRoutePage( routeData: routeData, - child: const _i14.WebLinkStubPage(), + child: const _i15.WebLinkStubPage(), ); }, }; @@ -141,11 +148,11 @@ abstract class $AppRouter extends _i15.RootStackRouter { /// generated route for /// [_i1.ChatRoomPage] -class ChatRoomRoute extends _i15.PageRouteInfo { +class ChatRoomRoute extends _i16.PageRouteInfo { ChatRoomRoute({ required String chatRoomId, - _i16.Key? key, - List<_i15.PageRouteInfo>? children, + _i17.Key? key, + List<_i16.PageRouteInfo>? children, }) : super( ChatRoomRoute.name, args: ChatRoomRouteArgs( @@ -158,8 +165,8 @@ class ChatRoomRoute extends _i15.PageRouteInfo { static const String name = 'ChatRoomRoute'; - static const _i15.PageInfo page = - _i15.PageInfo(name); + static const _i16.PageInfo page = + _i16.PageInfo(name); } class ChatRoomRouteArgs { @@ -170,7 +177,7 @@ class ChatRoomRouteArgs { final String chatRoomId; - final _i16.Key? key; + final _i17.Key? key; @override String toString() { @@ -180,8 +187,8 @@ class ChatRoomRouteArgs { /// generated route for /// [_i2.ChatRoomsPage] -class ChatRoomsRoute extends _i15.PageRouteInfo { - const ChatRoomsRoute({List<_i15.PageRouteInfo>? children}) +class ChatRoomsRoute extends _i16.PageRouteInfo { + const ChatRoomsRoute({List<_i16.PageRouteInfo>? children}) : super( ChatRoomsRoute.name, initialChildren: children, @@ -189,13 +196,13 @@ class ChatRoomsRoute extends _i15.PageRouteInfo { static const String name = 'ChatRoomsRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); } /// generated route for /// [_i3.ColorPage] -class ColorRoute extends _i15.PageRouteInfo { - const ColorRoute({List<_i15.PageRouteInfo>? children}) +class ColorRoute extends _i16.PageRouteInfo { + const ColorRoute({List<_i16.PageRouteInfo>? children}) : super( ColorRoute.name, initialChildren: children, @@ -203,13 +210,13 @@ class ColorRoute extends _i15.PageRouteInfo { static const String name = 'ColorRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); } /// generated route for /// [_i4.DevelopmentItemsPage] -class DevelopmentItemsRoute extends _i15.PageRouteInfo { - const DevelopmentItemsRoute({List<_i15.PageRouteInfo>? children}) +class DevelopmentItemsRoute extends _i16.PageRouteInfo { + const DevelopmentItemsRoute({List<_i16.PageRouteInfo>? children}) : super( DevelopmentItemsRoute.name, initialChildren: children, @@ -217,13 +224,13 @@ class DevelopmentItemsRoute extends _i15.PageRouteInfo { static const String name = 'DevelopmentItemsRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); } /// generated route for /// [_i5.ForceUpdateSamplePage] -class ForceUpdateSampleRoute extends _i15.PageRouteInfo { - const ForceUpdateSampleRoute({List<_i15.PageRouteInfo>? children}) +class ForceUpdateSampleRoute extends _i16.PageRouteInfo { + const ForceUpdateSampleRoute({List<_i16.PageRouteInfo>? children}) : super( ForceUpdateSampleRoute.name, initialChildren: children, @@ -231,13 +238,13 @@ class ForceUpdateSampleRoute extends _i15.PageRouteInfo { static const String name = 'ForceUpdateSampleRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); } /// generated route for /// [_i6.GenericImagesPage] -class GenericImagesRoute extends _i15.PageRouteInfo { - const GenericImagesRoute({List<_i15.PageRouteInfo>? children}) +class GenericImagesRoute extends _i16.PageRouteInfo { + const GenericImagesRoute({List<_i16.PageRouteInfo>? children}) : super( GenericImagesRoute.name, initialChildren: children, @@ -245,13 +252,13 @@ class GenericImagesRoute extends _i15.PageRouteInfo { static const String name = 'GenericImagesRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); } /// generated route for /// [_i7.ImageDetailViewStubPage] -class ImageDetailViewStubRoute extends _i15.PageRouteInfo { - const ImageDetailViewStubRoute({List<_i15.PageRouteInfo>? children}) +class ImageDetailViewStubRoute extends _i16.PageRouteInfo { + const ImageDetailViewStubRoute({List<_i16.PageRouteInfo>? children}) : super( ImageDetailViewStubRoute.name, initialChildren: children, @@ -259,13 +266,13 @@ class ImageDetailViewStubRoute extends _i15.PageRouteInfo { static const String name = 'ImageDetailViewStubRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); } /// generated route for /// [_i8.ImagePickerSamplePage] -class ImagePickerSampleRoute extends _i15.PageRouteInfo { - const ImagePickerSampleRoute({List<_i15.PageRouteInfo>? children}) +class ImagePickerSampleRoute extends _i16.PageRouteInfo { + const ImagePickerSampleRoute({List<_i16.PageRouteInfo>? children}) : super( ImagePickerSampleRoute.name, initialChildren: children, @@ -273,13 +280,13 @@ class ImagePickerSampleRoute extends _i15.PageRouteInfo { static const String name = 'ImagePickerSampleRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); } /// generated route for /// [_i9.InReviewPage] -class InReviewRoute extends _i15.PageRouteInfo { - const InReviewRoute({List<_i15.PageRouteInfo>? children}) +class InReviewRoute extends _i16.PageRouteInfo { + const InReviewRoute({List<_i16.PageRouteInfo>? children}) : super( InReviewRoute.name, initialChildren: children, @@ -287,16 +294,16 @@ class InReviewRoute extends _i15.PageRouteInfo { static const String name = 'InReviewRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); } /// generated route for /// [_i10.JobDetailPage] -class JobDetailRoute extends _i15.PageRouteInfo { +class JobDetailRoute extends _i16.PageRouteInfo { JobDetailRoute({ required String jobId, - _i16.Key? key, - List<_i15.PageRouteInfo>? children, + _i17.Key? key, + List<_i16.PageRouteInfo>? children, }) : super( JobDetailRoute.name, args: JobDetailRouteArgs( @@ -309,8 +316,8 @@ class JobDetailRoute extends _i15.PageRouteInfo { static const String name = 'JobDetailRoute'; - static const _i15.PageInfo page = - _i15.PageInfo(name); + static const _i16.PageInfo page = + _i16.PageInfo(name); } class JobDetailRouteArgs { @@ -321,7 +328,7 @@ class JobDetailRouteArgs { final String jobId; - final _i16.Key? key; + final _i17.Key? key; @override String toString() { @@ -331,8 +338,8 @@ class JobDetailRouteArgs { /// generated route for /// [_i11.MapPage] -class MapRoute extends _i15.PageRouteInfo { - const MapRoute({List<_i15.PageRouteInfo>? children}) +class MapRoute extends _i16.PageRouteInfo { + const MapRoute({List<_i16.PageRouteInfo>? children}) : super( MapRoute.name, initialChildren: children, @@ -340,13 +347,27 @@ class MapRoute extends _i15.PageRouteInfo { static const String name = 'MapRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); +} + +/// generated route for +/// [_i12.RootPage] +class RootRoute extends _i16.PageRouteInfo { + const RootRoute({List<_i16.PageRouteInfo>? children}) + : super( + RootRoute.name, + initialChildren: children, + ); + + static const String name = 'RootRoute'; + + static const _i16.PageInfo page = _i16.PageInfo(name); } /// generated route for -/// [_i12.SampleTodosPage] -class SampleTodosRoute extends _i15.PageRouteInfo { - const SampleTodosRoute({List<_i15.PageRouteInfo>? children}) +/// [_i13.SampleTodosPage] +class SampleTodosRoute extends _i16.PageRouteInfo { + const SampleTodosRoute({List<_i16.PageRouteInfo>? children}) : super( SampleTodosRoute.name, initialChildren: children, @@ -354,13 +375,13 @@ class SampleTodosRoute extends _i15.PageRouteInfo { static const String name = 'SampleTodosRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); } /// generated route for -/// [_i13.SignInSamplePage] -class SignInSampleRoute extends _i15.PageRouteInfo { - const SignInSampleRoute({List<_i15.PageRouteInfo>? children}) +/// [_i14.SignInSamplePage] +class SignInSampleRoute extends _i16.PageRouteInfo { + const SignInSampleRoute({List<_i16.PageRouteInfo>? children}) : super( SignInSampleRoute.name, initialChildren: children, @@ -368,13 +389,13 @@ class SignInSampleRoute extends _i15.PageRouteInfo { static const String name = 'SignInSampleRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); } /// generated route for -/// [_i14.WebLinkStubPage] -class WebLinkStubRoute extends _i15.PageRouteInfo { - const WebLinkStubRoute({List<_i15.PageRouteInfo>? children}) +/// [_i15.WebLinkStubPage] +class WebLinkStubRoute extends _i16.PageRouteInfo { + const WebLinkStubRoute({List<_i16.PageRouteInfo>? children}) : super( WebLinkStubRoute.name, initialChildren: children, @@ -382,5 +403,5 @@ class WebLinkStubRoute extends _i15.PageRouteInfo { static const String name = 'WebLinkStubRoute'; - static const _i15.PageInfo page = _i15.PageInfo(name); + static const _i16.PageInfo page = _i16.PageInfo(name); }