feat: merchant page
This commit is contained in:
@@ -27,5 +27,8 @@ class AppRouter extends RootStackRouter {
|
||||
AutoRoute(page: ProfileRoute.page),
|
||||
],
|
||||
),
|
||||
|
||||
// Merchant
|
||||
AutoRoute(page: MerchantRoute.page),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -9,35 +9,36 @@
|
||||
// coverage:ignore-file
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'package:auto_route/auto_route.dart' as _i12;
|
||||
import 'package:auto_route/auto_route.dart' as _i13;
|
||||
import 'package:enaklo/presentation/pages/auth/login/login_page.dart' as _i2;
|
||||
import 'package:enaklo/presentation/pages/auth/otp/otp_page.dart' as _i6;
|
||||
import 'package:enaklo/presentation/pages/auth/pin/pin_page.dart' as _i7;
|
||||
import 'package:enaklo/presentation/pages/auth/otp/otp_page.dart' as _i7;
|
||||
import 'package:enaklo/presentation/pages/auth/pin/pin_page.dart' as _i8;
|
||||
import 'package:enaklo/presentation/pages/auth/register/register_page.dart'
|
||||
as _i9;
|
||||
as _i10;
|
||||
import 'package:enaklo/presentation/pages/main/main_page.dart' as _i3;
|
||||
import 'package:enaklo/presentation/pages/main/pages/home/home_page.dart'
|
||||
as _i1;
|
||||
import 'package:enaklo/presentation/pages/main/pages/order/order_page.dart'
|
||||
as _i5;
|
||||
as _i6;
|
||||
import 'package:enaklo/presentation/pages/main/pages/profile/profile_page.dart'
|
||||
as _i8;
|
||||
as _i9;
|
||||
import 'package:enaklo/presentation/pages/main/pages/voucher/voucher_page.dart'
|
||||
as _i11;
|
||||
as _i12;
|
||||
import 'package:enaklo/presentation/pages/merchant/merchant_page.dart' as _i4;
|
||||
import 'package:enaklo/presentation/pages/onboarding/onboarding_page.dart'
|
||||
as _i4;
|
||||
import 'package:enaklo/presentation/pages/splash/splash_page.dart' as _i10;
|
||||
import 'package:flutter/material.dart' as _i13;
|
||||
as _i5;
|
||||
import 'package:enaklo/presentation/pages/splash/splash_page.dart' as _i11;
|
||||
import 'package:flutter/material.dart' as _i14;
|
||||
|
||||
/// generated route for
|
||||
/// [_i1.HomePage]
|
||||
class HomeRoute extends _i12.PageRouteInfo<void> {
|
||||
const HomeRoute({List<_i12.PageRouteInfo>? children})
|
||||
class HomeRoute extends _i13.PageRouteInfo<void> {
|
||||
const HomeRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(HomeRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'HomeRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i1.HomePage();
|
||||
@@ -47,13 +48,13 @@ class HomeRoute extends _i12.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i2.LoginPage]
|
||||
class LoginRoute extends _i12.PageRouteInfo<void> {
|
||||
const LoginRoute({List<_i12.PageRouteInfo>? children})
|
||||
class LoginRoute extends _i13.PageRouteInfo<void> {
|
||||
const LoginRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(LoginRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'LoginRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i2.LoginPage();
|
||||
@@ -63,13 +64,13 @@ class LoginRoute extends _i12.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i3.MainPage]
|
||||
class MainRoute extends _i12.PageRouteInfo<void> {
|
||||
const MainRoute({List<_i12.PageRouteInfo>? children})
|
||||
class MainRoute extends _i13.PageRouteInfo<void> {
|
||||
const MainRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(MainRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'MainRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i3.MainPage();
|
||||
@@ -78,61 +79,77 @@ class MainRoute extends _i12.PageRouteInfo<void> {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i4.OnboardingPage]
|
||||
class OnboardingRoute extends _i12.PageRouteInfo<void> {
|
||||
const OnboardingRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i4.MerchantPage]
|
||||
class MerchantRoute extends _i13.PageRouteInfo<void> {
|
||||
const MerchantRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(MerchantRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'MerchantRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i4.MerchantPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i5.OnboardingPage]
|
||||
class OnboardingRoute extends _i13.PageRouteInfo<void> {
|
||||
const OnboardingRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(OnboardingRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'OnboardingRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i4.OnboardingPage();
|
||||
return const _i5.OnboardingPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i5.OrderPage]
|
||||
class OrderRoute extends _i12.PageRouteInfo<void> {
|
||||
const OrderRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i6.OrderPage]
|
||||
class OrderRoute extends _i13.PageRouteInfo<void> {
|
||||
const OrderRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(OrderRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'OrderRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i5.OrderPage();
|
||||
return const _i6.OrderPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i6.OtpPage]
|
||||
class OtpRoute extends _i12.PageRouteInfo<void> {
|
||||
const OtpRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i7.OtpPage]
|
||||
class OtpRoute extends _i13.PageRouteInfo<void> {
|
||||
const OtpRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(OtpRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'OtpRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i6.OtpPage();
|
||||
return const _i7.OtpPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i7.PinPage]
|
||||
class PinRoute extends _i12.PageRouteInfo<PinRouteArgs> {
|
||||
/// [_i8.PinPage]
|
||||
class PinRoute extends _i13.PageRouteInfo<PinRouteArgs> {
|
||||
PinRoute({
|
||||
_i13.Key? key,
|
||||
_i14.Key? key,
|
||||
bool isCreatePin = true,
|
||||
String? title,
|
||||
List<_i12.PageRouteInfo>? children,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
PinRoute.name,
|
||||
args: PinRouteArgs(key: key, isCreatePin: isCreatePin, title: title),
|
||||
@@ -141,13 +158,13 @@ class PinRoute extends _i12.PageRouteInfo<PinRouteArgs> {
|
||||
|
||||
static const String name = 'PinRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<PinRouteArgs>(
|
||||
orElse: () => const PinRouteArgs(),
|
||||
);
|
||||
return _i7.PinPage(
|
||||
return _i8.PinPage(
|
||||
key: args.key,
|
||||
isCreatePin: args.isCreatePin,
|
||||
title: args.title,
|
||||
@@ -159,7 +176,7 @@ class PinRoute extends _i12.PageRouteInfo<PinRouteArgs> {
|
||||
class PinRouteArgs {
|
||||
const PinRouteArgs({this.key, this.isCreatePin = true, this.title});
|
||||
|
||||
final _i13.Key? key;
|
||||
final _i14.Key? key;
|
||||
|
||||
final bool isCreatePin;
|
||||
|
||||
@@ -172,65 +189,65 @@ class PinRouteArgs {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i8.ProfilePage]
|
||||
class ProfileRoute extends _i12.PageRouteInfo<void> {
|
||||
const ProfileRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i9.ProfilePage]
|
||||
class ProfileRoute extends _i13.PageRouteInfo<void> {
|
||||
const ProfileRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(ProfileRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ProfileRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i8.ProfilePage();
|
||||
return const _i9.ProfilePage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i9.RegisterPage]
|
||||
class RegisterRoute extends _i12.PageRouteInfo<void> {
|
||||
const RegisterRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i10.RegisterPage]
|
||||
class RegisterRoute extends _i13.PageRouteInfo<void> {
|
||||
const RegisterRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(RegisterRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'RegisterRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i9.RegisterPage();
|
||||
return const _i10.RegisterPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i10.SplashPage]
|
||||
class SplashRoute extends _i12.PageRouteInfo<void> {
|
||||
const SplashRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i11.SplashPage]
|
||||
class SplashRoute extends _i13.PageRouteInfo<void> {
|
||||
const SplashRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(SplashRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SplashRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i10.SplashPage();
|
||||
return const _i11.SplashPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i11.VoucherPage]
|
||||
class VoucherRoute extends _i12.PageRouteInfo<void> {
|
||||
const VoucherRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i12.VoucherPage]
|
||||
class VoucherRoute extends _i13.PageRouteInfo<void> {
|
||||
const VoucherRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(VoucherRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'VoucherRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i11.VoucherPage();
|
||||
return const _i12.VoucherPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user