feat: draw detail page
This commit is contained in:
@@ -37,5 +37,6 @@ class AppRouter extends RootStackRouter {
|
||||
|
||||
// Draw
|
||||
AutoRoute(page: DrawRoute.page),
|
||||
AutoRoute(page: DrawDetailRoute.page),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -9,167 +9,206 @@
|
||||
// coverage:ignore-file
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'package:auto_route/auto_route.dart' as _i16;
|
||||
import 'package:enaklo/presentation/pages/auth/login/login_page.dart' as _i3;
|
||||
import 'package:enaklo/presentation/pages/auth/otp/otp_page.dart' as _i8;
|
||||
import 'package:enaklo/presentation/pages/auth/pin/pin_page.dart' as _i9;
|
||||
import 'package:auto_route/auto_route.dart' as _i17;
|
||||
import 'package:enaklo/presentation/pages/auth/login/login_page.dart' as _i4;
|
||||
import 'package:enaklo/presentation/pages/auth/otp/otp_page.dart' as _i9;
|
||||
import 'package:enaklo/presentation/pages/auth/pin/pin_page.dart' as _i10;
|
||||
import 'package:enaklo/presentation/pages/auth/register/register_page.dart'
|
||||
as _i12;
|
||||
import 'package:enaklo/presentation/pages/draw/draw_page.dart' as _i1;
|
||||
import 'package:enaklo/presentation/pages/main/main_page.dart' as _i4;
|
||||
as _i13;
|
||||
import 'package:enaklo/presentation/pages/draw/draw_page.dart' as _i2;
|
||||
import 'package:enaklo/presentation/pages/draw/pages/draw_detail/draw_detail_page.dart'
|
||||
as _i1;
|
||||
import 'package:enaklo/presentation/pages/main/main_page.dart' as _i5;
|
||||
import 'package:enaklo/presentation/pages/main/pages/home/home_page.dart'
|
||||
as _i2;
|
||||
as _i3;
|
||||
import 'package:enaklo/presentation/pages/main/pages/order/order_page.dart'
|
||||
as _i7;
|
||||
as _i8;
|
||||
import 'package:enaklo/presentation/pages/main/pages/profile/profile_page.dart'
|
||||
as _i11;
|
||||
as _i12;
|
||||
import 'package:enaklo/presentation/pages/main/pages/voucher/voucher_page.dart'
|
||||
as _i15;
|
||||
import 'package:enaklo/presentation/pages/merchant/merchant_page.dart' as _i5;
|
||||
as _i16;
|
||||
import 'package:enaklo/presentation/pages/merchant/merchant_page.dart' as _i6;
|
||||
import 'package:enaklo/presentation/pages/onboarding/onboarding_page.dart'
|
||||
as _i6;
|
||||
as _i7;
|
||||
import 'package:enaklo/presentation/pages/reward/pages/product_redeem/product_redeem_page.dart'
|
||||
as _i10;
|
||||
import 'package:enaklo/presentation/pages/reward/reward_page.dart' as _i13;
|
||||
import 'package:enaklo/presentation/pages/splash/splash_page.dart' as _i14;
|
||||
import 'package:flutter/material.dart' as _i17;
|
||||
as _i11;
|
||||
import 'package:enaklo/presentation/pages/reward/reward_page.dart' as _i14;
|
||||
import 'package:enaklo/presentation/pages/splash/splash_page.dart' as _i15;
|
||||
import 'package:flutter/material.dart' as _i18;
|
||||
|
||||
/// generated route for
|
||||
/// [_i1.DrawPage]
|
||||
class DrawRoute extends _i16.PageRouteInfo<void> {
|
||||
const DrawRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i1.DrawDetailPage]
|
||||
class DrawDetailRoute extends _i17.PageRouteInfo<DrawDetailRouteArgs> {
|
||||
DrawDetailRoute({
|
||||
_i18.Key? key,
|
||||
required _i2.DrawEvent drawEvent,
|
||||
List<_i17.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
DrawDetailRoute.name,
|
||||
args: DrawDetailRouteArgs(key: key, drawEvent: drawEvent),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
static const String name = 'DrawDetailRoute';
|
||||
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<DrawDetailRouteArgs>();
|
||||
return _i1.DrawDetailPage(key: args.key, drawEvent: args.drawEvent);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class DrawDetailRouteArgs {
|
||||
const DrawDetailRouteArgs({this.key, required this.drawEvent});
|
||||
|
||||
final _i18.Key? key;
|
||||
|
||||
final _i2.DrawEvent drawEvent;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'DrawDetailRouteArgs{key: $key, drawEvent: $drawEvent}';
|
||||
}
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i2.DrawPage]
|
||||
class DrawRoute extends _i17.PageRouteInfo<void> {
|
||||
const DrawRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(DrawRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'DrawRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i1.DrawPage();
|
||||
return const _i2.DrawPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i2.HomePage]
|
||||
class HomeRoute extends _i16.PageRouteInfo<void> {
|
||||
const HomeRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i3.HomePage]
|
||||
class HomeRoute extends _i17.PageRouteInfo<void> {
|
||||
const HomeRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(HomeRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'HomeRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i2.HomePage();
|
||||
return const _i3.HomePage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i3.LoginPage]
|
||||
class LoginRoute extends _i16.PageRouteInfo<void> {
|
||||
const LoginRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i4.LoginPage]
|
||||
class LoginRoute extends _i17.PageRouteInfo<void> {
|
||||
const LoginRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(LoginRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'LoginRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i3.LoginPage();
|
||||
return const _i4.LoginPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i4.MainPage]
|
||||
class MainRoute extends _i16.PageRouteInfo<void> {
|
||||
const MainRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i5.MainPage]
|
||||
class MainRoute extends _i17.PageRouteInfo<void> {
|
||||
const MainRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(MainRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'MainRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i4.MainPage();
|
||||
return const _i5.MainPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i5.MerchantPage]
|
||||
class MerchantRoute extends _i16.PageRouteInfo<void> {
|
||||
const MerchantRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i6.MerchantPage]
|
||||
class MerchantRoute extends _i17.PageRouteInfo<void> {
|
||||
const MerchantRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(MerchantRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'MerchantRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i5.MerchantPage();
|
||||
return const _i6.MerchantPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i6.OnboardingPage]
|
||||
class OnboardingRoute extends _i16.PageRouteInfo<void> {
|
||||
const OnboardingRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i7.OnboardingPage]
|
||||
class OnboardingRoute extends _i17.PageRouteInfo<void> {
|
||||
const OnboardingRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(OnboardingRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'OnboardingRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i6.OnboardingPage();
|
||||
return const _i7.OnboardingPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i7.OrderPage]
|
||||
class OrderRoute extends _i16.PageRouteInfo<void> {
|
||||
const OrderRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i8.OrderPage]
|
||||
class OrderRoute extends _i17.PageRouteInfo<void> {
|
||||
const OrderRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(OrderRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'OrderRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i7.OrderPage();
|
||||
return const _i8.OrderPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i8.OtpPage]
|
||||
class OtpRoute extends _i16.PageRouteInfo<void> {
|
||||
const OtpRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i9.OtpPage]
|
||||
class OtpRoute extends _i17.PageRouteInfo<void> {
|
||||
const OtpRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(OtpRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'OtpRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i8.OtpPage();
|
||||
return const _i9.OtpPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i9.PinPage]
|
||||
class PinRoute extends _i16.PageRouteInfo<PinRouteArgs> {
|
||||
/// [_i10.PinPage]
|
||||
class PinRoute extends _i17.PageRouteInfo<PinRouteArgs> {
|
||||
PinRoute({
|
||||
_i17.Key? key,
|
||||
_i18.Key? key,
|
||||
bool isCreatePin = true,
|
||||
String? title,
|
||||
List<_i16.PageRouteInfo>? children,
|
||||
List<_i17.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
PinRoute.name,
|
||||
args: PinRouteArgs(key: key, isCreatePin: isCreatePin, title: title),
|
||||
@@ -178,13 +217,13 @@ class PinRoute extends _i16.PageRouteInfo<PinRouteArgs> {
|
||||
|
||||
static const String name = 'PinRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<PinRouteArgs>(
|
||||
orElse: () => const PinRouteArgs(),
|
||||
);
|
||||
return _i9.PinPage(
|
||||
return _i10.PinPage(
|
||||
key: args.key,
|
||||
isCreatePin: args.isCreatePin,
|
||||
title: args.title,
|
||||
@@ -196,7 +235,7 @@ class PinRoute extends _i16.PageRouteInfo<PinRouteArgs> {
|
||||
class PinRouteArgs {
|
||||
const PinRouteArgs({this.key, this.isCreatePin = true, this.title});
|
||||
|
||||
final _i17.Key? key;
|
||||
final _i18.Key? key;
|
||||
|
||||
final bool isCreatePin;
|
||||
|
||||
@@ -209,14 +248,14 @@ class PinRouteArgs {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i10.ProductRedeemPage]
|
||||
class ProductRedeemRoute extends _i16.PageRouteInfo<ProductRedeemRouteArgs> {
|
||||
/// [_i11.ProductRedeemPage]
|
||||
class ProductRedeemRoute extends _i17.PageRouteInfo<ProductRedeemRouteArgs> {
|
||||
ProductRedeemRoute({
|
||||
_i17.Key? key,
|
||||
required _i13.Product product,
|
||||
required _i13.Merchant merchant,
|
||||
required _i13.PointCard pointCard,
|
||||
List<_i16.PageRouteInfo>? children,
|
||||
_i18.Key? key,
|
||||
required _i14.Product product,
|
||||
required _i14.Merchant merchant,
|
||||
required _i14.PointCard pointCard,
|
||||
List<_i17.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
ProductRedeemRoute.name,
|
||||
args: ProductRedeemRouteArgs(
|
||||
@@ -230,11 +269,11 @@ class ProductRedeemRoute extends _i16.PageRouteInfo<ProductRedeemRouteArgs> {
|
||||
|
||||
static const String name = 'ProductRedeemRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<ProductRedeemRouteArgs>();
|
||||
return _i10.ProductRedeemPage(
|
||||
return _i11.ProductRedeemPage(
|
||||
key: args.key,
|
||||
product: args.product,
|
||||
merchant: args.merchant,
|
||||
@@ -252,13 +291,13 @@ class ProductRedeemRouteArgs {
|
||||
required this.pointCard,
|
||||
});
|
||||
|
||||
final _i17.Key? key;
|
||||
final _i18.Key? key;
|
||||
|
||||
final _i13.Product product;
|
||||
final _i14.Product product;
|
||||
|
||||
final _i13.Merchant merchant;
|
||||
final _i14.Merchant merchant;
|
||||
|
||||
final _i13.PointCard pointCard;
|
||||
final _i14.PointCard pointCard;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
@@ -267,81 +306,81 @@ class ProductRedeemRouteArgs {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i11.ProfilePage]
|
||||
class ProfileRoute extends _i16.PageRouteInfo<void> {
|
||||
const ProfileRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i12.ProfilePage]
|
||||
class ProfileRoute extends _i17.PageRouteInfo<void> {
|
||||
const ProfileRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(ProfileRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ProfileRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i11.ProfilePage();
|
||||
return const _i12.ProfilePage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i12.RegisterPage]
|
||||
class RegisterRoute extends _i16.PageRouteInfo<void> {
|
||||
const RegisterRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i13.RegisterPage]
|
||||
class RegisterRoute extends _i17.PageRouteInfo<void> {
|
||||
const RegisterRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(RegisterRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'RegisterRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i12.RegisterPage();
|
||||
return const _i13.RegisterPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i13.RewardPage]
|
||||
class RewardRoute extends _i16.PageRouteInfo<void> {
|
||||
const RewardRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i14.RewardPage]
|
||||
class RewardRoute extends _i17.PageRouteInfo<void> {
|
||||
const RewardRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(RewardRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'RewardRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i13.RewardPage();
|
||||
return const _i14.RewardPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i14.SplashPage]
|
||||
class SplashRoute extends _i16.PageRouteInfo<void> {
|
||||
const SplashRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i15.SplashPage]
|
||||
class SplashRoute extends _i17.PageRouteInfo<void> {
|
||||
const SplashRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(SplashRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SplashRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i14.SplashPage();
|
||||
return const _i15.SplashPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i15.VoucherPage]
|
||||
class VoucherRoute extends _i16.PageRouteInfo<void> {
|
||||
const VoucherRoute({List<_i16.PageRouteInfo>? children})
|
||||
/// [_i16.VoucherPage]
|
||||
class VoucherRoute extends _i17.PageRouteInfo<void> {
|
||||
const VoucherRoute({List<_i17.PageRouteInfo>? children})
|
||||
: super(VoucherRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'VoucherRoute';
|
||||
|
||||
static _i16.PageInfo page = _i16.PageInfo(
|
||||
static _i17.PageInfo page = _i17.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i15.VoucherPage();
|
||||
return const _i16.VoucherPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user