enaklo-flutter/lib/presentation/router/app_router.gr.dart

348 lines
9.0 KiB
Dart
Raw Normal View History

2025-08-27 12:43:25 +07:00
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// AutoRouterGenerator
// **************************************************************************
// ignore_for_file: type=lint
// coverage:ignore-file
// ignore_for_file: no_leading_underscores_for_library_prefixes
2025-08-29 15:30:15 +07:00
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;
2025-08-27 17:11:38 +07:00
import 'package:enaklo/presentation/pages/auth/register/register_page.dart'
2025-08-29 15:30:15 +07:00
as _i12;
import 'package:enaklo/presentation/pages/draw/draw_page.dart' as _i1;
import 'package:enaklo/presentation/pages/main/main_page.dart' as _i4;
2025-08-27 18:51:14 +07:00
import 'package:enaklo/presentation/pages/main/pages/home/home_page.dart'
2025-08-29 15:30:15 +07:00
as _i2;
2025-08-27 18:51:14 +07:00
import 'package:enaklo/presentation/pages/main/pages/order/order_page.dart'
2025-08-29 15:30:15 +07:00
as _i7;
2025-08-27 18:51:14 +07:00
import 'package:enaklo/presentation/pages/main/pages/profile/profile_page.dart'
2025-08-29 15:30:15 +07:00
as _i11;
2025-08-27 18:51:14 +07:00
import 'package:enaklo/presentation/pages/main/pages/voucher/voucher_page.dart'
2025-08-29 15:30:15 +07:00
as _i15;
import 'package:enaklo/presentation/pages/merchant/merchant_page.dart' as _i5;
2025-08-27 15:07:49 +07:00
import 'package:enaklo/presentation/pages/onboarding/onboarding_page.dart'
2025-08-29 15:30:15 +07:00
as _i6;
2025-08-29 14:39:05 +07:00
import 'package:enaklo/presentation/pages/reward/pages/product_redeem/product_redeem_page.dart'
2025-08-29 15:30:15 +07:00
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;
/// generated route for
/// [_i1.DrawPage]
class DrawRoute extends _i16.PageRouteInfo<void> {
const DrawRoute({List<_i16.PageRouteInfo>? children})
: super(DrawRoute.name, initialChildren: children);
static const String name = 'DrawRoute';
static _i16.PageInfo page = _i16.PageInfo(
name,
builder: (data) {
return const _i1.DrawPage();
},
);
}
2025-08-27 12:43:25 +07:00
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i2.HomePage]
class HomeRoute extends _i16.PageRouteInfo<void> {
const HomeRoute({List<_i16.PageRouteInfo>? children})
2025-08-27 18:51:14 +07:00
: super(HomeRoute.name, initialChildren: children);
static const String name = 'HomeRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-27 18:51:14 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i2.HomePage();
2025-08-27 18:51:14 +07:00
},
);
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i3.LoginPage]
class LoginRoute extends _i16.PageRouteInfo<void> {
const LoginRoute({List<_i16.PageRouteInfo>? children})
2025-08-27 16:19:54 +07:00
: super(LoginRoute.name, initialChildren: children);
static const String name = 'LoginRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-27 16:19:54 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i3.LoginPage();
2025-08-27 16:19:54 +07:00
},
);
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i4.MainPage]
class MainRoute extends _i16.PageRouteInfo<void> {
const MainRoute({List<_i16.PageRouteInfo>? children})
2025-08-27 18:51:14 +07:00
: super(MainRoute.name, initialChildren: children);
static const String name = 'MainRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-27 18:51:14 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i4.MainPage();
2025-08-27 18:51:14 +07:00
},
);
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i5.MerchantPage]
class MerchantRoute extends _i16.PageRouteInfo<void> {
const MerchantRoute({List<_i16.PageRouteInfo>? children})
2025-08-28 01:11:19 +07:00
: super(MerchantRoute.name, initialChildren: children);
static const String name = 'MerchantRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-28 01:11:19 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i5.MerchantPage();
2025-08-28 01:11:19 +07:00
},
);
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i6.OnboardingPage]
class OnboardingRoute extends _i16.PageRouteInfo<void> {
const OnboardingRoute({List<_i16.PageRouteInfo>? children})
2025-08-27 15:07:49 +07:00
: super(OnboardingRoute.name, initialChildren: children);
static const String name = 'OnboardingRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-27 15:07:49 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i6.OnboardingPage();
2025-08-27 15:07:49 +07:00
},
);
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i7.OrderPage]
class OrderRoute extends _i16.PageRouteInfo<void> {
const OrderRoute({List<_i16.PageRouteInfo>? children})
2025-08-27 18:51:14 +07:00
: super(OrderRoute.name, initialChildren: children);
static const String name = 'OrderRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-27 18:51:14 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i7.OrderPage();
2025-08-27 18:51:14 +07:00
},
);
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i8.OtpPage]
class OtpRoute extends _i16.PageRouteInfo<void> {
const OtpRoute({List<_i16.PageRouteInfo>? children})
2025-08-27 17:34:35 +07:00
: super(OtpRoute.name, initialChildren: children);
static const String name = 'OtpRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-27 17:34:35 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i8.OtpPage();
2025-08-27 17:34:35 +07:00
},
);
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i9.PinPage]
class PinRoute extends _i16.PageRouteInfo<PinRouteArgs> {
2025-08-27 18:40:03 +07:00
PinRoute({
2025-08-29 15:30:15 +07:00
_i17.Key? key,
2025-08-27 18:40:03 +07:00
bool isCreatePin = true,
String? title,
2025-08-29 15:30:15 +07:00
List<_i16.PageRouteInfo>? children,
2025-08-27 18:40:03 +07:00
}) : super(
PinRoute.name,
args: PinRouteArgs(key: key, isCreatePin: isCreatePin, title: title),
initialChildren: children,
);
static const String name = 'PinRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-27 18:40:03 +07:00
name,
builder: (data) {
final args = data.argsAs<PinRouteArgs>(
orElse: () => const PinRouteArgs(),
);
2025-08-29 15:30:15 +07:00
return _i9.PinPage(
2025-08-27 18:40:03 +07:00
key: args.key,
isCreatePin: args.isCreatePin,
title: args.title,
);
},
);
}
class PinRouteArgs {
const PinRouteArgs({this.key, this.isCreatePin = true, this.title});
2025-08-29 15:30:15 +07:00
final _i17.Key? key;
2025-08-27 18:40:03 +07:00
final bool isCreatePin;
final String? title;
@override
String toString() {
return 'PinRouteArgs{key: $key, isCreatePin: $isCreatePin, title: $title}';
}
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i10.ProductRedeemPage]
class ProductRedeemRoute extends _i16.PageRouteInfo<ProductRedeemRouteArgs> {
2025-08-29 14:39:05 +07:00
ProductRedeemRoute({
2025-08-29 15:30:15 +07:00
_i17.Key? key,
required _i13.Product product,
required _i13.Merchant merchant,
required _i13.PointCard pointCard,
List<_i16.PageRouteInfo>? children,
2025-08-29 14:39:05 +07:00
}) : super(
ProductRedeemRoute.name,
args: ProductRedeemRouteArgs(
key: key,
product: product,
merchant: merchant,
pointCard: pointCard,
),
initialChildren: children,
);
static const String name = 'ProductRedeemRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-29 14:39:05 +07:00
name,
builder: (data) {
final args = data.argsAs<ProductRedeemRouteArgs>();
2025-08-29 15:30:15 +07:00
return _i10.ProductRedeemPage(
2025-08-29 14:39:05 +07:00
key: args.key,
product: args.product,
merchant: args.merchant,
pointCard: args.pointCard,
);
},
);
}
class ProductRedeemRouteArgs {
const ProductRedeemRouteArgs({
this.key,
required this.product,
required this.merchant,
required this.pointCard,
});
2025-08-29 15:30:15 +07:00
final _i17.Key? key;
2025-08-29 14:39:05 +07:00
2025-08-29 15:30:15 +07:00
final _i13.Product product;
2025-08-29 14:39:05 +07:00
2025-08-29 15:30:15 +07:00
final _i13.Merchant merchant;
2025-08-29 14:39:05 +07:00
2025-08-29 15:30:15 +07:00
final _i13.PointCard pointCard;
2025-08-29 14:39:05 +07:00
@override
String toString() {
return 'ProductRedeemRouteArgs{key: $key, product: $product, merchant: $merchant, pointCard: $pointCard}';
}
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i11.ProfilePage]
class ProfileRoute extends _i16.PageRouteInfo<void> {
const ProfileRoute({List<_i16.PageRouteInfo>? children})
2025-08-27 18:51:14 +07:00
: super(ProfileRoute.name, initialChildren: children);
static const String name = 'ProfileRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-27 18:51:14 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i11.ProfilePage();
2025-08-27 18:51:14 +07:00
},
);
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i12.RegisterPage]
class RegisterRoute extends _i16.PageRouteInfo<void> {
const RegisterRoute({List<_i16.PageRouteInfo>? children})
2025-08-27 17:11:38 +07:00
: super(RegisterRoute.name, initialChildren: children);
static const String name = 'RegisterRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-27 17:11:38 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i12.RegisterPage();
2025-08-27 17:11:38 +07:00
},
);
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i13.RewardPage]
class RewardRoute extends _i16.PageRouteInfo<void> {
const RewardRoute({List<_i16.PageRouteInfo>? children})
2025-08-29 14:25:21 +07:00
: super(RewardRoute.name, initialChildren: children);
static const String name = 'RewardRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-29 14:25:21 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i13.RewardPage();
2025-08-29 14:25:21 +07:00
},
);
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i14.SplashPage]
class SplashRoute extends _i16.PageRouteInfo<void> {
const SplashRoute({List<_i16.PageRouteInfo>? children})
2025-08-27 12:43:25 +07:00
: super(SplashRoute.name, initialChildren: children);
static const String name = 'SplashRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-27 18:51:14 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i14.SplashPage();
2025-08-27 18:51:14 +07:00
},
);
}
/// generated route for
2025-08-29 15:30:15 +07:00
/// [_i15.VoucherPage]
class VoucherRoute extends _i16.PageRouteInfo<void> {
const VoucherRoute({List<_i16.PageRouteInfo>? children})
2025-08-27 18:51:14 +07:00
: super(VoucherRoute.name, initialChildren: children);
static const String name = 'VoucherRoute';
2025-08-29 15:30:15 +07:00
static _i16.PageInfo page = _i16.PageInfo(
2025-08-27 12:43:25 +07:00
name,
builder: (data) {
2025-08-29 15:30:15 +07:00
return const _i15.VoucherPage();
2025-08-27 12:43:25 +07:00
},
);
}