From b0cf40136bb6cfffc3d16931c3df293fd6f026b2 Mon Sep 17 00:00:00 2001 From: efrilm Date: Fri, 29 Aug 2025 21:37:24 +0700 Subject: [PATCH] feat: my account page --- .../account/account_my/account_my_page.dart | 27 ++ .../main/pages/profile/profile_page.dart | 255 +++++++------ lib/presentation/router/app_router.dart | 3 + lib/presentation/router/app_router.gr.dart | 360 +++++++++--------- 4 files changed, 350 insertions(+), 295 deletions(-) create mode 100644 lib/presentation/pages/account/account_my/account_my_page.dart diff --git a/lib/presentation/pages/account/account_my/account_my_page.dart b/lib/presentation/pages/account/account_my/account_my_page.dart new file mode 100644 index 0000000..07e48ab --- /dev/null +++ b/lib/presentation/pages/account/account_my/account_my_page.dart @@ -0,0 +1,27 @@ +import 'package:auto_route/auto_route.dart'; +import 'package:flutter/material.dart'; + +import '../../../components/field/field.dart'; + +@RoutePage() +class AccountMyPage extends StatelessWidget { + const AccountMyPage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: Text('Akun Saya')), + body: ListView( + padding: EdgeInsets.all(16), + children: [ + AppTextFormField(title: 'Nama', hintText: 'Masukkan Name'), + SizedBox(height: 16), + AppTextFormField(title: 'Email', hintText: 'Masukkan Email'), + SizedBox(height: 16), + AppTextFormField(title: 'No. Hp', hintText: 'Masukkan No. Hp'), + SizedBox(height: 16), + ], + ), + ); + } +} diff --git a/lib/presentation/pages/main/pages/profile/profile_page.dart b/lib/presentation/pages/main/pages/profile/profile_page.dart index b7cc4eb..4d0942d 100644 --- a/lib/presentation/pages/main/pages/profile/profile_page.dart +++ b/lib/presentation/pages/main/pages/profile/profile_page.dart @@ -2,6 +2,7 @@ import 'package:auto_route/auto_route.dart'; import 'package:flutter/material.dart'; import '../../../../../common/theme/theme.dart'; +import '../../../../router/app_router.gr.dart'; @RoutePage() class ProfilePage extends StatelessWidget { @@ -23,145 +24,151 @@ class ProfilePage extends StatelessWidget { child: Column( children: [ // Profile Avatar & Info - Container( - decoration: BoxDecoration( - gradient: LinearGradient( - colors: AppColor.primaryGradient, - begin: Alignment.topLeft, - end: Alignment.bottomRight, + GestureDetector( + onTap: () => context.router.push(AccountMyRoute()), + child: Container( + decoration: BoxDecoration( + gradient: LinearGradient( + colors: AppColor.primaryGradient, + begin: Alignment.topLeft, + end: Alignment.bottomRight, + ), + borderRadius: BorderRadius.circular(16), ), - borderRadius: BorderRadius.circular(16), - ), - child: Stack( - children: [ - // Background Pattern - Positioned( - top: -20, - right: -20, - child: Container( - width: 80, - height: 80, - decoration: BoxDecoration( - shape: BoxShape.circle, - color: AppColor.white.withOpacity(0.1), - ), - ), - ), - Positioned( - top: 30, - right: 20, - child: Container( - width: 40, - height: 40, - decoration: BoxDecoration( - shape: BoxShape.circle, - color: AppColor.white.withOpacity(0.08), - ), - ), - ), - Positioned( - bottom: -10, - left: -10, - child: Container( - width: 60, - height: 60, - decoration: BoxDecoration( - shape: BoxShape.circle, - color: AppColor.white.withOpacity(0.06), - ), - ), - ), - // Decorative Lines - Positioned( - top: 10, - left: -5, - child: Transform.rotate( - angle: 0.5, + child: Stack( + children: [ + // Background Pattern + Positioned( + top: -20, + right: -20, child: Container( - width: 30, - height: 2, + width: 80, + height: 80, decoration: BoxDecoration( - color: AppColor.white.withOpacity(0.15), - borderRadius: BorderRadius.circular(1), + shape: BoxShape.circle, + color: AppColor.white.withOpacity(0.1), ), ), ), - ), - Positioned( - bottom: 15, - right: 10, - child: Transform.rotate( - angle: -0.5, + Positioned( + top: 30, + right: 20, child: Container( - width: 25, - height: 2, + width: 40, + height: 40, decoration: BoxDecoration( - color: AppColor.white.withOpacity(0.15), - borderRadius: BorderRadius.circular(1), + shape: BoxShape.circle, + color: AppColor.white.withOpacity(0.08), ), ), ), - ), - // Main Content - Padding( - padding: const EdgeInsets.all(16.0), - child: Row( - children: [ - // Avatar - Container( - width: 60, - height: 60, + Positioned( + bottom: -10, + left: -10, + child: Container( + width: 60, + height: 60, + decoration: BoxDecoration( + shape: BoxShape.circle, + color: AppColor.white.withOpacity(0.06), + ), + ), + ), + // Decorative Lines + Positioned( + top: 10, + left: -5, + child: Transform.rotate( + angle: 0.5, + child: Container( + width: 30, + height: 2, decoration: BoxDecoration( - color: AppColor.white, - shape: BoxShape.circle, - boxShadow: [ - BoxShadow( - color: AppColor.black.withOpacity(0.1), - blurRadius: 8, - offset: const Offset(0, 2), - ), - ], - ), - child: Icon( - Icons.person, - size: 30, - color: AppColor.primary, + color: AppColor.white.withOpacity(0.15), + borderRadius: BorderRadius.circular(1), ), ), - const SizedBox(width: 16), - // User Info - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - 'EFRIL', - style: AppStyle.lg.copyWith( - fontWeight: FontWeight.bold, - color: AppColor.white, - letterSpacing: 0.5, - ), - ), - const SizedBox(height: 4), - Text( - '+6283873987851', - style: AppStyle.sm.copyWith( - color: AppColor.white.withOpacity(0.9), - ), - ), - ], - ), - ), - // Arrow Icon - Icon( - Icons.arrow_forward_ios, - color: AppColor.white, - size: 14, - ), - ], + ), ), - ), - ], + Positioned( + bottom: 15, + right: 10, + child: Transform.rotate( + angle: -0.5, + child: Container( + width: 25, + height: 2, + decoration: BoxDecoration( + color: AppColor.white.withOpacity(0.15), + borderRadius: BorderRadius.circular(1), + ), + ), + ), + ), + // Main Content + Padding( + padding: const EdgeInsets.all(16.0), + child: Row( + children: [ + // Avatar + Container( + width: 60, + height: 60, + decoration: BoxDecoration( + color: AppColor.white, + shape: BoxShape.circle, + boxShadow: [ + BoxShadow( + color: AppColor.black.withOpacity(0.1), + blurRadius: 8, + offset: const Offset(0, 2), + ), + ], + ), + child: Icon( + Icons.person, + size: 30, + color: AppColor.primary, + ), + ), + const SizedBox(width: 16), + // User Info + Expanded( + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + Text( + 'EFRIL', + style: AppStyle.lg.copyWith( + fontWeight: FontWeight.bold, + color: AppColor.white, + letterSpacing: 0.5, + ), + ), + const SizedBox(height: 4), + Text( + '+6283873987851', + style: AppStyle.sm.copyWith( + color: AppColor.white.withOpacity( + 0.9, + ), + ), + ), + ], + ), + ), + // Arrow Icon + Icon( + Icons.arrow_forward_ios, + color: AppColor.white, + size: 14, + ), + ], + ), + ), + ], + ), ), ), ], diff --git a/lib/presentation/router/app_router.dart b/lib/presentation/router/app_router.dart index b1e3409..56bc9d6 100644 --- a/lib/presentation/router/app_router.dart +++ b/lib/presentation/router/app_router.dart @@ -54,5 +54,8 @@ class AppRouter extends RootStackRouter { // Reward AutoRoute(page: RewardRoute.page), + + // Account + AutoRoute(page: AccountMyRoute.page), ]; } diff --git a/lib/presentation/router/app_router.gr.dart b/lib/presentation/router/app_router.gr.dart index 6417177..f8b47ab 100644 --- a/lib/presentation/router/app_router.gr.dart +++ b/lib/presentation/router/app_router.gr.dart @@ -9,72 +9,90 @@ // coverage:ignore-file // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:auto_route/auto_route.dart' as _i25; -import 'package:enaklo/presentation/pages/auth/create_password/create_password_page.dart' +import 'package:auto_route/auto_route.dart' as _i26; +import 'package:enaklo/presentation/pages/account/account_my/account_my_page.dart' as _i1; -import 'package:enaklo/presentation/pages/auth/login/login_page.dart' as _i5; -import 'package:enaklo/presentation/pages/auth/otp/otp_page.dart' as _i13; -import 'package:enaklo/presentation/pages/auth/password/password_page.dart' - as _i14; -import 'package:enaklo/presentation/pages/auth/pin/pin_page.dart' as _i15; -import 'package:enaklo/presentation/pages/auth/register/register_page.dart' - as _i20; -import 'package:enaklo/presentation/pages/draw/draw_page.dart' as _i3; -import 'package:enaklo/presentation/pages/draw/pages/draw_detail/draw_detail_page.dart' +import 'package:enaklo/presentation/pages/auth/create_password/create_password_page.dart' as _i2; -import 'package:enaklo/presentation/pages/main/main_page.dart' as _i6; +import 'package:enaklo/presentation/pages/auth/login/login_page.dart' as _i6; +import 'package:enaklo/presentation/pages/auth/otp/otp_page.dart' as _i14; +import 'package:enaklo/presentation/pages/auth/password/password_page.dart' + as _i15; +import 'package:enaklo/presentation/pages/auth/pin/pin_page.dart' as _i16; +import 'package:enaklo/presentation/pages/auth/register/register_page.dart' + as _i21; +import 'package:enaklo/presentation/pages/draw/draw_page.dart' as _i4; +import 'package:enaklo/presentation/pages/draw/pages/draw_detail/draw_detail_page.dart' + as _i3; +import 'package:enaklo/presentation/pages/main/main_page.dart' as _i7; import 'package:enaklo/presentation/pages/main/pages/home/home_page.dart' - as _i4; + as _i5; import 'package:enaklo/presentation/pages/main/pages/order/order_page.dart' - as _i12; + as _i13; import 'package:enaklo/presentation/pages/main/pages/profile/profile_page.dart' - as _i19; + as _i20; import 'package:enaklo/presentation/pages/main/pages/voucher/voucher_page.dart' - as _i24; -import 'package:enaklo/presentation/pages/merchant/merchant_page.dart' as _i8; + as _i25; +import 'package:enaklo/presentation/pages/merchant/merchant_page.dart' as _i9; import 'package:enaklo/presentation/pages/merchant/pages/merchant_detail/merchant_detail_page.dart' - as _i7; + as _i8; import 'package:enaklo/presentation/pages/notification/notification_page.dart' - as _i9; -import 'package:enaklo/presentation/pages/onboarding/onboarding_page.dart' as _i10; -import 'package:enaklo/presentation/pages/order/order_detail/order_detail_page.dart' +import 'package:enaklo/presentation/pages/onboarding/onboarding_page.dart' as _i11; +import 'package:enaklo/presentation/pages/order/order_detail/order_detail_page.dart' + as _i12; import 'package:enaklo/presentation/pages/poin/pages/poin_history_page.dart' - as _i16; + as _i17; import 'package:enaklo/presentation/pages/poin/pages/product_redeem/product_redeem_page.dart' - as _i18; -import 'package:enaklo/presentation/pages/poin/poin_page.dart' as _i17; -import 'package:enaklo/presentation/pages/reward/reward_page.dart' as _i21; -import 'package:enaklo/presentation/pages/splash/splash_page.dart' as _i22; + as _i19; +import 'package:enaklo/presentation/pages/poin/poin_page.dart' as _i18; +import 'package:enaklo/presentation/pages/reward/reward_page.dart' as _i22; +import 'package:enaklo/presentation/pages/splash/splash_page.dart' as _i23; import 'package:enaklo/presentation/pages/voucher/voucher_detail/voucher_detail_page.dart' - as _i23; -import 'package:enaklo/sample/sample_data.dart' as _i27; -import 'package:flutter/material.dart' as _i26; + as _i24; +import 'package:enaklo/sample/sample_data.dart' as _i28; +import 'package:flutter/material.dart' as _i27; /// generated route for -/// [_i1.CreatePasswordPage] -class CreatePasswordRoute extends _i25.PageRouteInfo { - const CreatePasswordRoute({List<_i25.PageRouteInfo>? children}) - : super(CreatePasswordRoute.name, initialChildren: children); +/// [_i1.AccountMyPage] +class AccountMyRoute extends _i26.PageRouteInfo { + const AccountMyRoute({List<_i26.PageRouteInfo>? children}) + : super(AccountMyRoute.name, initialChildren: children); - static const String name = 'CreatePasswordRoute'; + static const String name = 'AccountMyRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i1.CreatePasswordPage(); + return const _i1.AccountMyPage(); }, ); } /// generated route for -/// [_i2.DrawDetailPage] -class DrawDetailRoute extends _i25.PageRouteInfo { +/// [_i2.CreatePasswordPage] +class CreatePasswordRoute extends _i26.PageRouteInfo { + const CreatePasswordRoute({List<_i26.PageRouteInfo>? children}) + : super(CreatePasswordRoute.name, initialChildren: children); + + static const String name = 'CreatePasswordRoute'; + + static _i26.PageInfo page = _i26.PageInfo( + name, + builder: (data) { + return const _i2.CreatePasswordPage(); + }, + ); +} + +/// generated route for +/// [_i3.DrawDetailPage] +class DrawDetailRoute extends _i26.PageRouteInfo { DrawDetailRoute({ - _i26.Key? key, - required _i3.DrawEvent drawEvent, - List<_i25.PageRouteInfo>? children, + _i27.Key? key, + required _i4.DrawEvent drawEvent, + List<_i26.PageRouteInfo>? children, }) : super( DrawDetailRoute.name, args: DrawDetailRouteArgs(key: key, drawEvent: drawEvent), @@ -83,11 +101,11 @@ class DrawDetailRoute extends _i25.PageRouteInfo { static const String name = 'DrawDetailRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { final args = data.argsAs(); - return _i2.DrawDetailPage(key: args.key, drawEvent: args.drawEvent); + return _i3.DrawDetailPage(key: args.key, drawEvent: args.drawEvent); }, ); } @@ -95,9 +113,9 @@ class DrawDetailRoute extends _i25.PageRouteInfo { class DrawDetailRouteArgs { const DrawDetailRouteArgs({this.key, required this.drawEvent}); - final _i26.Key? key; + final _i27.Key? key; - final _i3.DrawEvent drawEvent; + final _i4.DrawEvent drawEvent; @override String toString() { @@ -106,76 +124,76 @@ class DrawDetailRouteArgs { } /// generated route for -/// [_i3.DrawPage] -class DrawRoute extends _i25.PageRouteInfo { - const DrawRoute({List<_i25.PageRouteInfo>? children}) +/// [_i4.DrawPage] +class DrawRoute extends _i26.PageRouteInfo { + const DrawRoute({List<_i26.PageRouteInfo>? children}) : super(DrawRoute.name, initialChildren: children); static const String name = 'DrawRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i3.DrawPage(); + return const _i4.DrawPage(); }, ); } /// generated route for -/// [_i4.HomePage] -class HomeRoute extends _i25.PageRouteInfo { - const HomeRoute({List<_i25.PageRouteInfo>? children}) +/// [_i5.HomePage] +class HomeRoute extends _i26.PageRouteInfo { + const HomeRoute({List<_i26.PageRouteInfo>? children}) : super(HomeRoute.name, initialChildren: children); static const String name = 'HomeRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i4.HomePage(); + return const _i5.HomePage(); }, ); } /// generated route for -/// [_i5.LoginPage] -class LoginRoute extends _i25.PageRouteInfo { - const LoginRoute({List<_i25.PageRouteInfo>? children}) +/// [_i6.LoginPage] +class LoginRoute extends _i26.PageRouteInfo { + const LoginRoute({List<_i26.PageRouteInfo>? children}) : super(LoginRoute.name, initialChildren: children); static const String name = 'LoginRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i5.LoginPage(); + return const _i6.LoginPage(); }, ); } /// generated route for -/// [_i6.MainPage] -class MainRoute extends _i25.PageRouteInfo { - const MainRoute({List<_i25.PageRouteInfo>? children}) +/// [_i7.MainPage] +class MainRoute extends _i26.PageRouteInfo { + const MainRoute({List<_i26.PageRouteInfo>? children}) : super(MainRoute.name, initialChildren: children); static const String name = 'MainRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i6.MainPage(); + return const _i7.MainPage(); }, ); } /// generated route for -/// [_i7.MerchantDetailPage] -class MerchantDetailRoute extends _i25.PageRouteInfo { +/// [_i8.MerchantDetailPage] +class MerchantDetailRoute extends _i26.PageRouteInfo { MerchantDetailRoute({ - _i26.Key? key, - required _i27.MerchantModel merchant, - List<_i25.PageRouteInfo>? children, + _i27.Key? key, + required _i28.MerchantModel merchant, + List<_i26.PageRouteInfo>? children, }) : super( MerchantDetailRoute.name, args: MerchantDetailRouteArgs(key: key, merchant: merchant), @@ -184,11 +202,11 @@ class MerchantDetailRoute extends _i25.PageRouteInfo { static const String name = 'MerchantDetailRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { final args = data.argsAs(); - return _i7.MerchantDetailPage(key: args.key, merchant: args.merchant); + return _i8.MerchantDetailPage(key: args.key, merchant: args.merchant); }, ); } @@ -196,9 +214,9 @@ class MerchantDetailRoute extends _i25.PageRouteInfo { class MerchantDetailRouteArgs { const MerchantDetailRouteArgs({this.key, required this.merchant}); - final _i26.Key? key; + final _i27.Key? key; - final _i27.MerchantModel merchant; + final _i28.MerchantModel merchant; @override String toString() { @@ -207,60 +225,60 @@ class MerchantDetailRouteArgs { } /// generated route for -/// [_i8.MerchantPage] -class MerchantRoute extends _i25.PageRouteInfo { - const MerchantRoute({List<_i25.PageRouteInfo>? children}) +/// [_i9.MerchantPage] +class MerchantRoute extends _i26.PageRouteInfo { + const MerchantRoute({List<_i26.PageRouteInfo>? children}) : super(MerchantRoute.name, initialChildren: children); static const String name = 'MerchantRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i8.MerchantPage(); + return const _i9.MerchantPage(); }, ); } /// generated route for -/// [_i9.NotificationPage] -class NotificationRoute extends _i25.PageRouteInfo { - const NotificationRoute({List<_i25.PageRouteInfo>? children}) +/// [_i10.NotificationPage] +class NotificationRoute extends _i26.PageRouteInfo { + const NotificationRoute({List<_i26.PageRouteInfo>? children}) : super(NotificationRoute.name, initialChildren: children); static const String name = 'NotificationRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i9.NotificationPage(); + return const _i10.NotificationPage(); }, ); } /// generated route for -/// [_i10.OnboardingPage] -class OnboardingRoute extends _i25.PageRouteInfo { - const OnboardingRoute({List<_i25.PageRouteInfo>? children}) +/// [_i11.OnboardingPage] +class OnboardingRoute extends _i26.PageRouteInfo { + const OnboardingRoute({List<_i26.PageRouteInfo>? children}) : super(OnboardingRoute.name, initialChildren: children); static const String name = 'OnboardingRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i10.OnboardingPage(); + return const _i11.OnboardingPage(); }, ); } /// generated route for -/// [_i11.OrderDetailPage] -class OrderDetailRoute extends _i25.PageRouteInfo { +/// [_i12.OrderDetailPage] +class OrderDetailRoute extends _i26.PageRouteInfo { OrderDetailRoute({ - _i26.Key? key, - required _i12.Order order, - List<_i25.PageRouteInfo>? children, + _i27.Key? key, + required _i13.Order order, + List<_i26.PageRouteInfo>? children, }) : super( OrderDetailRoute.name, args: OrderDetailRouteArgs(key: key, order: order), @@ -269,11 +287,11 @@ class OrderDetailRoute extends _i25.PageRouteInfo { static const String name = 'OrderDetailRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { final args = data.argsAs(); - return _i11.OrderDetailPage(key: args.key, order: args.order); + return _i12.OrderDetailPage(key: args.key, order: args.order); }, ); } @@ -281,9 +299,9 @@ class OrderDetailRoute extends _i25.PageRouteInfo { class OrderDetailRouteArgs { const OrderDetailRouteArgs({this.key, required this.order}); - final _i26.Key? key; + final _i27.Key? key; - final _i12.Order order; + final _i13.Order order; @override String toString() { @@ -292,61 +310,61 @@ class OrderDetailRouteArgs { } /// generated route for -/// [_i12.OrderPage] -class OrderRoute extends _i25.PageRouteInfo { - const OrderRoute({List<_i25.PageRouteInfo>? children}) +/// [_i13.OrderPage] +class OrderRoute extends _i26.PageRouteInfo { + const OrderRoute({List<_i26.PageRouteInfo>? children}) : super(OrderRoute.name, initialChildren: children); static const String name = 'OrderRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i12.OrderPage(); + return const _i13.OrderPage(); }, ); } /// generated route for -/// [_i13.OtpPage] -class OtpRoute extends _i25.PageRouteInfo { - const OtpRoute({List<_i25.PageRouteInfo>? children}) +/// [_i14.OtpPage] +class OtpRoute extends _i26.PageRouteInfo { + const OtpRoute({List<_i26.PageRouteInfo>? children}) : super(OtpRoute.name, initialChildren: children); static const String name = 'OtpRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i13.OtpPage(); + return const _i14.OtpPage(); }, ); } /// generated route for -/// [_i14.PasswordPage] -class PasswordRoute extends _i25.PageRouteInfo { - const PasswordRoute({List<_i25.PageRouteInfo>? children}) +/// [_i15.PasswordPage] +class PasswordRoute extends _i26.PageRouteInfo { + const PasswordRoute({List<_i26.PageRouteInfo>? children}) : super(PasswordRoute.name, initialChildren: children); static const String name = 'PasswordRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i14.PasswordPage(); + return const _i15.PasswordPage(); }, ); } /// generated route for -/// [_i15.PinPage] -class PinRoute extends _i25.PageRouteInfo { +/// [_i16.PinPage] +class PinRoute extends _i26.PageRouteInfo { PinRoute({ - _i26.Key? key, + _i27.Key? key, bool isCreatePin = true, String? title, - List<_i25.PageRouteInfo>? children, + List<_i26.PageRouteInfo>? children, }) : super( PinRoute.name, args: PinRouteArgs(key: key, isCreatePin: isCreatePin, title: title), @@ -355,13 +373,13 @@ class PinRoute extends _i25.PageRouteInfo { static const String name = 'PinRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { final args = data.argsAs( orElse: () => const PinRouteArgs(), ); - return _i15.PinPage( + return _i16.PinPage( key: args.key, isCreatePin: args.isCreatePin, title: args.title, @@ -373,7 +391,7 @@ class PinRoute extends _i25.PageRouteInfo { class PinRouteArgs { const PinRouteArgs({this.key, this.isCreatePin = true, this.title}); - final _i26.Key? key; + final _i27.Key? key; final bool isCreatePin; @@ -386,45 +404,45 @@ class PinRouteArgs { } /// generated route for -/// [_i16.PoinHistoryPage] -class PoinHistoryRoute extends _i25.PageRouteInfo { - const PoinHistoryRoute({List<_i25.PageRouteInfo>? children}) +/// [_i17.PoinHistoryPage] +class PoinHistoryRoute extends _i26.PageRouteInfo { + const PoinHistoryRoute({List<_i26.PageRouteInfo>? children}) : super(PoinHistoryRoute.name, initialChildren: children); static const String name = 'PoinHistoryRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i16.PoinHistoryPage(); + return const _i17.PoinHistoryPage(); }, ); } /// generated route for -/// [_i17.PoinPage] -class PoinRoute extends _i25.PageRouteInfo { - const PoinRoute({List<_i25.PageRouteInfo>? children}) +/// [_i18.PoinPage] +class PoinRoute extends _i26.PageRouteInfo { + const PoinRoute({List<_i26.PageRouteInfo>? children}) : super(PoinRoute.name, initialChildren: children); static const String name = 'PoinRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i17.PoinPage(); + return const _i18.PoinPage(); }, ); } /// generated route for -/// [_i18.ProductRedeemPage] -class ProductRedeemRoute extends _i25.PageRouteInfo { +/// [_i19.ProductRedeemPage] +class ProductRedeemRoute extends _i26.PageRouteInfo { ProductRedeemRoute({ - _i26.Key? key, - required _i17.Product product, - required _i17.PointCard pointCard, - List<_i25.PageRouteInfo>? children, + _i27.Key? key, + required _i18.Product product, + required _i18.PointCard pointCard, + List<_i26.PageRouteInfo>? children, }) : super( ProductRedeemRoute.name, args: ProductRedeemRouteArgs( @@ -437,11 +455,11 @@ class ProductRedeemRoute extends _i25.PageRouteInfo { static const String name = 'ProductRedeemRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { final args = data.argsAs(); - return _i18.ProductRedeemPage( + return _i19.ProductRedeemPage( key: args.key, product: args.product, pointCard: args.pointCard, @@ -457,11 +475,11 @@ class ProductRedeemRouteArgs { required this.pointCard, }); - final _i26.Key? key; + final _i27.Key? key; - final _i17.Product product; + final _i18.Product product; - final _i17.PointCard pointCard; + final _i18.PointCard pointCard; @override String toString() { @@ -470,97 +488,97 @@ class ProductRedeemRouteArgs { } /// generated route for -/// [_i19.ProfilePage] -class ProfileRoute extends _i25.PageRouteInfo { - const ProfileRoute({List<_i25.PageRouteInfo>? children}) +/// [_i20.ProfilePage] +class ProfileRoute extends _i26.PageRouteInfo { + const ProfileRoute({List<_i26.PageRouteInfo>? children}) : super(ProfileRoute.name, initialChildren: children); static const String name = 'ProfileRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i19.ProfilePage(); + return const _i20.ProfilePage(); }, ); } /// generated route for -/// [_i20.RegisterPage] -class RegisterRoute extends _i25.PageRouteInfo { - const RegisterRoute({List<_i25.PageRouteInfo>? children}) +/// [_i21.RegisterPage] +class RegisterRoute extends _i26.PageRouteInfo { + const RegisterRoute({List<_i26.PageRouteInfo>? children}) : super(RegisterRoute.name, initialChildren: children); static const String name = 'RegisterRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i20.RegisterPage(); + return const _i21.RegisterPage(); }, ); } /// generated route for -/// [_i21.RewardPage] -class RewardRoute extends _i25.PageRouteInfo { - const RewardRoute({List<_i25.PageRouteInfo>? children}) +/// [_i22.RewardPage] +class RewardRoute extends _i26.PageRouteInfo { + const RewardRoute({List<_i26.PageRouteInfo>? children}) : super(RewardRoute.name, initialChildren: children); static const String name = 'RewardRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i21.RewardPage(); + return const _i22.RewardPage(); }, ); } /// generated route for -/// [_i22.SplashPage] -class SplashRoute extends _i25.PageRouteInfo { - const SplashRoute({List<_i25.PageRouteInfo>? children}) +/// [_i23.SplashPage] +class SplashRoute extends _i26.PageRouteInfo { + const SplashRoute({List<_i26.PageRouteInfo>? children}) : super(SplashRoute.name, initialChildren: children); static const String name = 'SplashRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i22.SplashPage(); + return const _i23.SplashPage(); }, ); } /// generated route for -/// [_i23.VoucherDetailPage] -class VoucherDetailRoute extends _i25.PageRouteInfo { - const VoucherDetailRoute({List<_i25.PageRouteInfo>? children}) +/// [_i24.VoucherDetailPage] +class VoucherDetailRoute extends _i26.PageRouteInfo { + const VoucherDetailRoute({List<_i26.PageRouteInfo>? children}) : super(VoucherDetailRoute.name, initialChildren: children); static const String name = 'VoucherDetailRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i23.VoucherDetailPage(); + return const _i24.VoucherDetailPage(); }, ); } /// generated route for -/// [_i24.VoucherPage] -class VoucherRoute extends _i25.PageRouteInfo { - const VoucherRoute({List<_i25.PageRouteInfo>? children}) +/// [_i25.VoucherPage] +class VoucherRoute extends _i26.PageRouteInfo { + const VoucherRoute({List<_i26.PageRouteInfo>? children}) : super(VoucherRoute.name, initialChildren: children); static const String name = 'VoucherRoute'; - static _i25.PageInfo page = _i25.PageInfo( + static _i26.PageInfo page = _i26.PageInfo( name, builder: (data) { - return const _i24.VoucherPage(); + return const _i25.VoucherPage(); }, ); }