feat: reward -> poin
This commit is contained in:
@@ -34,8 +34,8 @@ class AppRouter extends RootStackRouter {
|
||||
AutoRoute(page: MerchantRoute.page),
|
||||
AutoRoute(page: MerchantDetailRoute.page),
|
||||
|
||||
// Reward
|
||||
AutoRoute(page: RewardRoute.page),
|
||||
// Point
|
||||
AutoRoute(page: PoinRoute.page),
|
||||
AutoRoute(page: ProductRedeemRoute.page),
|
||||
|
||||
// Draw
|
||||
|
||||
@@ -18,7 +18,7 @@ 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 _i18;
|
||||
as _i19;
|
||||
import 'package:enaklo/presentation/pages/draw/draw_page.dart' as _i3;
|
||||
import 'package:enaklo/presentation/pages/draw/pages/draw_detail/draw_detail_page.dart'
|
||||
as _i2;
|
||||
@@ -28,7 +28,7 @@ import 'package:enaklo/presentation/pages/main/pages/home/home_page.dart'
|
||||
import 'package:enaklo/presentation/pages/main/pages/order/order_page.dart'
|
||||
as _i12;
|
||||
import 'package:enaklo/presentation/pages/main/pages/profile/profile_page.dart'
|
||||
as _i17;
|
||||
as _i18;
|
||||
import 'package:enaklo/presentation/pages/main/pages/voucher/voucher_page.dart'
|
||||
as _i22;
|
||||
import 'package:enaklo/presentation/pages/merchant/merchant_page.dart' as _i8;
|
||||
@@ -40,9 +40,9 @@ import 'package:enaklo/presentation/pages/onboarding/onboarding_page.dart'
|
||||
as _i10;
|
||||
import 'package:enaklo/presentation/pages/order/order_detail/order_detail_page.dart'
|
||||
as _i11;
|
||||
import 'package:enaklo/presentation/pages/reward/pages/product_redeem/product_redeem_page.dart'
|
||||
as _i16;
|
||||
import 'package:enaklo/presentation/pages/reward/reward_page.dart' as _i19;
|
||||
import 'package:enaklo/presentation/pages/poin/pages/product_redeem/product_redeem_page.dart'
|
||||
as _i17;
|
||||
import 'package:enaklo/presentation/pages/poin/poin_page.dart' as _i16;
|
||||
import 'package:enaklo/presentation/pages/splash/splash_page.dart' as _i20;
|
||||
import 'package:enaklo/presentation/pages/voucher/voucher_detail/voucher_detail_page.dart'
|
||||
as _i21;
|
||||
@@ -382,13 +382,29 @@ class PinRouteArgs {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i16.ProductRedeemPage]
|
||||
/// [_i16.PoinPage]
|
||||
class PoinRoute extends _i23.PageRouteInfo<void> {
|
||||
const PoinRoute({List<_i23.PageRouteInfo>? children})
|
||||
: super(PoinRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'PoinRoute';
|
||||
|
||||
static _i23.PageInfo page = _i23.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i16.PoinPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i17.ProductRedeemPage]
|
||||
class ProductRedeemRoute extends _i23.PageRouteInfo<ProductRedeemRouteArgs> {
|
||||
ProductRedeemRoute({
|
||||
_i24.Key? key,
|
||||
required _i19.Product product,
|
||||
required _i19.Merchant merchant,
|
||||
required _i19.PointCard pointCard,
|
||||
required _i16.Product product,
|
||||
required _i16.Merchant merchant,
|
||||
required _i16.PointCard pointCard,
|
||||
List<_i23.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
ProductRedeemRoute.name,
|
||||
@@ -407,7 +423,7 @@ class ProductRedeemRoute extends _i23.PageRouteInfo<ProductRedeemRouteArgs> {
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<ProductRedeemRouteArgs>();
|
||||
return _i16.ProductRedeemPage(
|
||||
return _i17.ProductRedeemPage(
|
||||
key: args.key,
|
||||
product: args.product,
|
||||
merchant: args.merchant,
|
||||
@@ -427,11 +443,11 @@ class ProductRedeemRouteArgs {
|
||||
|
||||
final _i24.Key? key;
|
||||
|
||||
final _i19.Product product;
|
||||
final _i16.Product product;
|
||||
|
||||
final _i19.Merchant merchant;
|
||||
final _i16.Merchant merchant;
|
||||
|
||||
final _i19.PointCard pointCard;
|
||||
final _i16.PointCard pointCard;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
@@ -440,7 +456,7 @@ class ProductRedeemRouteArgs {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i17.ProfilePage]
|
||||
/// [_i18.ProfilePage]
|
||||
class ProfileRoute extends _i23.PageRouteInfo<void> {
|
||||
const ProfileRoute({List<_i23.PageRouteInfo>? children})
|
||||
: super(ProfileRoute.name, initialChildren: children);
|
||||
@@ -450,13 +466,13 @@ class ProfileRoute extends _i23.PageRouteInfo<void> {
|
||||
static _i23.PageInfo page = _i23.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i17.ProfilePage();
|
||||
return const _i18.ProfilePage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i18.RegisterPage]
|
||||
/// [_i19.RegisterPage]
|
||||
class RegisterRoute extends _i23.PageRouteInfo<void> {
|
||||
const RegisterRoute({List<_i23.PageRouteInfo>? children})
|
||||
: super(RegisterRoute.name, initialChildren: children);
|
||||
@@ -466,23 +482,7 @@ class RegisterRoute extends _i23.PageRouteInfo<void> {
|
||||
static _i23.PageInfo page = _i23.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i18.RegisterPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i19.RewardPage]
|
||||
class RewardRoute extends _i23.PageRouteInfo<void> {
|
||||
const RewardRoute({List<_i23.PageRouteInfo>? children})
|
||||
: super(RewardRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'RewardRoute';
|
||||
|
||||
static _i23.PageInfo page = _i23.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i19.RewardPage();
|
||||
return const _i19.RegisterPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user