feat: outlet information page

This commit is contained in:
efrilm
2025-08-19 11:08:33 +07:00
parent de11c1243c
commit 590bb3329c
21 changed files with 2652 additions and 104 deletions
@@ -0,0 +1,403 @@
import 'package:flutter/material.dart';
import 'package:auto_route/auto_route.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import '../../../application/outlet/current_outlet_loader/current_outlet_loader_bloc.dart';
import '../../../common/theme/theme.dart';
import '../../../domain/outlet/outlet.dart';
import '../../../injection.dart';
import '../../components/appbar/appbar.dart';
// Outlet Information Page
@RoutePage()
class OutletInformationPage extends StatefulWidget implements AutoRouteWrapper {
const OutletInformationPage({super.key});
@override
State<OutletInformationPage> createState() => _OutletInformationPageState();
@override
Widget wrappedRoute(BuildContext context) => BlocProvider(
create: (_) =>
getIt<CurrentOutletLoaderBloc>()
..add(CurrentOutletLoaderEvent.fetched()),
child: this,
);
}
class _OutletInformationPageState extends State<OutletInformationPage>
with TickerProviderStateMixin {
late ScrollController _scrollController;
late AnimationController _fadeController;
late AnimationController _slideController;
late Animation<double> _fadeAnimation;
late Animation<Offset> _slideAnimation;
@override
void initState() {
super.initState();
_scrollController = ScrollController();
_fadeController = AnimationController(
duration: const Duration(milliseconds: 800),
vsync: this,
);
_slideController = AnimationController(
duration: const Duration(milliseconds: 600),
vsync: this,
);
_fadeAnimation = Tween<double>(begin: 0.0, end: 1.0).animate(
CurvedAnimation(parent: _fadeController, curve: Curves.easeInOut),
);
_slideAnimation =
Tween<Offset>(begin: const Offset(0, 0.3), end: Offset.zero).animate(
CurvedAnimation(parent: _slideController, curve: Curves.easeOutBack),
);
// Start animations
_fadeController.forward();
_slideController.forward();
}
@override
void dispose() {
_scrollController.dispose();
_fadeController.dispose();
_slideController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColor.background,
body: CustomScrollView(
controller: _scrollController,
slivers: [
SliverAppBar(
expandedHeight: 120.0,
floating: false,
pinned: true,
flexibleSpace: CustomAppBar(title: 'Outlet Information'),
),
SliverToBoxAdapter(
child: FadeTransition(
opacity: _fadeAnimation,
child: SlideTransition(
position: _slideAnimation,
child: _buildContent(),
),
),
),
],
),
);
}
Widget _buildContent() {
return BlocBuilder<CurrentOutletLoaderBloc, CurrentOutletLoaderState>(
builder: (context, state) {
return Padding(
padding: const EdgeInsets.all(20.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildHeaderCard(state.outlet),
const SizedBox(height: 20),
_buildInfoSection(state.outlet),
const SizedBox(height: 20),
_buildContactSection(state.outlet),
const SizedBox(height: 20),
_buildBusinessSection(state.outlet),
const SizedBox(height: 20),
_buildStatusSection(state.outlet),
const SizedBox(height: 20),
_buildTimestampSection(state.outlet),
],
),
);
},
);
}
Widget _buildHeaderCard(Outlet outlet) {
return TweenAnimationBuilder<double>(
duration: const Duration(milliseconds: 800),
tween: Tween(begin: 0.0, end: 1.0),
builder: (context, value, child) {
return Transform.scale(
scale: 0.8 + (0.2 * value),
child: Container(
padding: const EdgeInsets.all(24),
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: AppColor.primaryGradient,
),
borderRadius: BorderRadius.circular(20),
boxShadow: [
BoxShadow(
color: AppColor.primary.withOpacity(0.3),
blurRadius: 20,
offset: const Offset(0, 10),
),
],
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Container(
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
color: AppColor.white.withOpacity(0.2),
borderRadius: BorderRadius.circular(12),
),
child: Icon(Icons.store, color: AppColor.white, size: 24),
),
const SizedBox(width: 16),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
outlet.name,
style: AppStyle.h5.copyWith(
color: AppColor.white,
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 4),
Text(
outlet.businessType,
style: AppStyle.md.copyWith(
color: AppColor.white.withOpacity(0.9),
),
),
],
),
),
],
),
],
),
),
);
},
);
}
Widget _buildInfoSection(Outlet outlet) {
return _buildAnimatedCard(
delay: 200,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildSectionTitle('General Information', Icons.info_outline),
const SizedBox(height: 16),
_buildInfoRow('Outlet ID', outlet.id, Icons.fingerprint),
_buildInfoRow(
'Organization ID',
outlet.organizationId,
Icons.business,
),
_buildInfoRow('Address', outlet.address, Icons.location_on),
],
),
);
}
Widget _buildContactSection(Outlet outlet) {
return _buildAnimatedCard(
delay: 400,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildSectionTitle('Contact Information', Icons.contact_phone),
const SizedBox(height: 16),
_buildInfoRow('Phone Number', outlet.phoneNumber, Icons.phone),
],
),
);
}
Widget _buildBusinessSection(Outlet outlet) {
return _buildAnimatedCard(
delay: 600,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildSectionTitle('Business Settings', Icons.settings_applications),
const SizedBox(height: 16),
_buildInfoRow('Currency', outlet.currency, Icons.monetization_on),
_buildInfoRow('Tax Rate', '${outlet.taxRate}%', Icons.percent),
],
),
);
}
Widget _buildStatusSection(Outlet outlet) {
return _buildAnimatedCard(
delay: 800,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildSectionTitle('Status', Icons.toggle_on),
const SizedBox(height: 16),
Container(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
decoration: BoxDecoration(
color: outlet.isActive
? AppColor.success.withOpacity(0.1)
: AppColor.error.withOpacity(0.1),
borderRadius: BorderRadius.circular(12),
border: Border.all(
color: outlet.isActive
? AppColor.success.withOpacity(0.3)
: AppColor.error.withOpacity(0.3),
),
),
child: Row(
children: [
Container(
width: 8,
height: 8,
decoration: BoxDecoration(
color: outlet.isActive ? AppColor.success : AppColor.error,
shape: BoxShape.circle,
),
),
const SizedBox(width: 12),
Text(
outlet.isActive ? 'Active' : 'Inactive',
style: AppStyle.md.copyWith(
color: outlet.isActive ? AppColor.success : AppColor.error,
fontWeight: FontWeight.w600,
),
),
],
),
),
],
),
);
}
Widget _buildTimestampSection(Outlet outlet) {
return _buildAnimatedCard(
delay: 1000,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildSectionTitle('Timestamps', Icons.schedule),
const SizedBox(height: 16),
_buildInfoRow(
'Created At',
_formatDateTime(outlet.createdAt),
Icons.add_circle_outline,
),
_buildInfoRow(
'Updated At',
_formatDateTime(outlet.updatedAt),
Icons.update,
),
],
),
);
}
Widget _buildAnimatedCard({required Widget child, required int delay}) {
return TweenAnimationBuilder<double>(
duration: Duration(milliseconds: 600 + delay),
tween: Tween(begin: 0.0, end: 1.0),
builder: (context, value, _) {
return Transform.translate(
offset: Offset(0, 30 * (1 - value)),
child: Opacity(
opacity: value,
child: Container(
padding: const EdgeInsets.all(20),
decoration: BoxDecoration(
color: AppColor.white,
borderRadius: BorderRadius.circular(16),
boxShadow: [
BoxShadow(
color: AppColor.black.withOpacity(0.05),
blurRadius: 10,
offset: const Offset(0, 5),
),
],
),
child: child,
),
),
);
},
);
}
Widget _buildSectionTitle(String title, IconData icon) {
return Row(
children: [
Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: AppColor.primary.withOpacity(0.1),
borderRadius: BorderRadius.circular(8),
),
child: Icon(icon, color: AppColor.primary, size: 20),
),
const SizedBox(width: 12),
Text(
title,
style: AppStyle.lg.copyWith(
fontWeight: FontWeight.bold,
color: AppColor.textPrimary,
),
),
],
);
}
Widget _buildInfoRow(String label, String value, IconData icon) {
return Padding(
padding: const EdgeInsets.only(bottom: 16),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(icon, color: AppColor.textSecondary, size: 20),
const SizedBox(width: 12),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
label,
style: AppStyle.sm.copyWith(
color: AppColor.textSecondary,
fontWeight: FontWeight.w500,
),
),
const SizedBox(height: 4),
Text(
value,
style: AppStyle.md.copyWith(
color: AppColor.textPrimary,
fontWeight: FontWeight.w600,
),
),
],
),
),
],
),
);
}
String _formatDateTime(DateTime dateTime) {
return '${dateTime.day}/${dateTime.month}/${dateTime.year} ${dateTime.hour.toString().padLeft(2, '0')}:${dateTime.minute.toString().padLeft(2, '0')}';
}
}
@@ -43,9 +43,7 @@ class ProfileBusinessSetting extends StatelessWidget {
icon: Icons.business_outlined,
title: 'Outlet Information',
subtitle: 'Manage your Outlet details',
onTap: () {
// Navigate to business info
},
onTap: () => context.router.push(OutletInformationRoute()),
),
ProfileDivider(),
+3
View File
@@ -55,5 +55,8 @@ class AppRouter extends RootStackRouter {
// Order
AutoRoute(page: OrderDetailRoute.page),
// Outlet
AutoRoute(page: OutletInformationRoute.page),
];
}
+119 -101
View File
@@ -9,7 +9,7 @@
// coverage:ignore-file
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:apskel_owner_flutter/domain/order/order.dart' as _i22;
import 'package:apskel_owner_flutter/domain/order/order.dart' as _i23;
import 'package:apskel_owner_flutter/presentation/pages/auth/login/login_page.dart'
as _i8;
import 'package:apskel_owner_flutter/presentation/pages/customer/customer_page.dart'
@@ -32,50 +32,52 @@ import 'package:apskel_owner_flutter/presentation/pages/order/order_detail/order
as _i10;
import 'package:apskel_owner_flutter/presentation/pages/order/order_list/order_page.dart'
as _i11;
import 'package:apskel_owner_flutter/presentation/pages/product/product_analytic/product_analytic_page.dart'
import 'package:apskel_owner_flutter/presentation/pages/outlet/outlet_information_page.dart'
as _i12;
import 'package:apskel_owner_flutter/presentation/pages/product/product_list/product_page.dart'
import 'package:apskel_owner_flutter/presentation/pages/product/product_analytic/product_analytic_page.dart'
as _i13;
import 'package:apskel_owner_flutter/presentation/pages/profile/profile_page.dart'
import 'package:apskel_owner_flutter/presentation/pages/product/product_list/product_page.dart'
as _i14;
import 'package:apskel_owner_flutter/presentation/pages/purchase/purchase_page.dart'
import 'package:apskel_owner_flutter/presentation/pages/profile/profile_page.dart'
as _i15;
import 'package:apskel_owner_flutter/presentation/pages/report/report_page.dart'
import 'package:apskel_owner_flutter/presentation/pages/purchase/purchase_page.dart'
as _i16;
import 'package:apskel_owner_flutter/presentation/pages/sales/sales_page.dart'
import 'package:apskel_owner_flutter/presentation/pages/report/report_page.dart'
as _i17;
import 'package:apskel_owner_flutter/presentation/pages/schedule/schedule_page.dart'
import 'package:apskel_owner_flutter/presentation/pages/sales/sales_page.dart'
as _i18;
import 'package:apskel_owner_flutter/presentation/pages/splash/splash_page.dart'
import 'package:apskel_owner_flutter/presentation/pages/schedule/schedule_page.dart'
as _i19;
import 'package:auto_route/auto_route.dart' as _i20;
import 'package:flutter/material.dart' as _i21;
import 'package:apskel_owner_flutter/presentation/pages/splash/splash_page.dart'
as _i20;
import 'package:auto_route/auto_route.dart' as _i21;
import 'package:flutter/material.dart' as _i22;
/// generated route for
/// [_i1.CustomerPage]
class CustomerRoute extends _i20.PageRouteInfo<void> {
const CustomerRoute({List<_i20.PageRouteInfo>? children})
class CustomerRoute extends _i21.PageRouteInfo<void> {
const CustomerRoute({List<_i21.PageRouteInfo>? children})
: super(CustomerRoute.name, initialChildren: children);
static const String name = 'CustomerRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return _i20.WrappedRoute(child: const _i1.CustomerPage());
return _i21.WrappedRoute(child: const _i1.CustomerPage());
},
);
}
/// generated route for
/// [_i2.DailyTasksFormPage]
class DailyTasksFormRoute extends _i20.PageRouteInfo<void> {
const DailyTasksFormRoute({List<_i20.PageRouteInfo>? children})
class DailyTasksFormRoute extends _i21.PageRouteInfo<void> {
const DailyTasksFormRoute({List<_i21.PageRouteInfo>? children})
: super(DailyTasksFormRoute.name, initialChildren: children);
static const String name = 'DailyTasksFormRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return const _i2.DailyTasksFormPage();
@@ -85,16 +87,16 @@ class DailyTasksFormRoute extends _i20.PageRouteInfo<void> {
/// generated route for
/// [_i3.ErrorPage]
class ErrorRoute extends _i20.PageRouteInfo<ErrorRouteArgs> {
class ErrorRoute extends _i21.PageRouteInfo<ErrorRouteArgs> {
ErrorRoute({
_i21.Key? key,
_i22.Key? key,
String? title,
String? message,
_i21.VoidCallback? onRetry,
_i21.VoidCallback? onBack,
_i22.VoidCallback? onRetry,
_i22.VoidCallback? onBack,
String? errorCode,
_i21.IconData? errorIcon,
List<_i20.PageRouteInfo>? children,
_i22.IconData? errorIcon,
List<_i21.PageRouteInfo>? children,
}) : super(
ErrorRoute.name,
args: ErrorRouteArgs(
@@ -111,7 +113,7 @@ class ErrorRoute extends _i20.PageRouteInfo<ErrorRouteArgs> {
static const String name = 'ErrorRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
final args = data.argsAs<ErrorRouteArgs>(
@@ -141,19 +143,19 @@ class ErrorRouteArgs {
this.errorIcon,
});
final _i21.Key? key;
final _i22.Key? key;
final String? title;
final String? message;
final _i21.VoidCallback? onRetry;
final _i22.VoidCallback? onRetry;
final _i21.VoidCallback? onBack;
final _i22.VoidCallback? onBack;
final String? errorCode;
final _i21.IconData? errorIcon;
final _i22.IconData? errorIcon;
@override
String toString() {
@@ -163,29 +165,29 @@ class ErrorRouteArgs {
/// generated route for
/// [_i4.FinancePage]
class FinanceRoute extends _i20.PageRouteInfo<void> {
const FinanceRoute({List<_i20.PageRouteInfo>? children})
class FinanceRoute extends _i21.PageRouteInfo<void> {
const FinanceRoute({List<_i21.PageRouteInfo>? children})
: super(FinanceRoute.name, initialChildren: children);
static const String name = 'FinanceRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return _i20.WrappedRoute(child: const _i4.FinancePage());
return _i21.WrappedRoute(child: const _i4.FinancePage());
},
);
}
/// generated route for
/// [_i5.HomePage]
class HomeRoute extends _i20.PageRouteInfo<void> {
const HomeRoute({List<_i20.PageRouteInfo>? children})
class HomeRoute extends _i21.PageRouteInfo<void> {
const HomeRoute({List<_i21.PageRouteInfo>? children})
: super(HomeRoute.name, initialChildren: children);
static const String name = 'HomeRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return const _i5.HomePage();
@@ -195,29 +197,29 @@ class HomeRoute extends _i20.PageRouteInfo<void> {
/// generated route for
/// [_i6.InventoryPage]
class InventoryRoute extends _i20.PageRouteInfo<void> {
const InventoryRoute({List<_i20.PageRouteInfo>? children})
class InventoryRoute extends _i21.PageRouteInfo<void> {
const InventoryRoute({List<_i21.PageRouteInfo>? children})
: super(InventoryRoute.name, initialChildren: children);
static const String name = 'InventoryRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return _i20.WrappedRoute(child: const _i6.InventoryPage());
return _i21.WrappedRoute(child: const _i6.InventoryPage());
},
);
}
/// generated route for
/// [_i7.LanguagePage]
class LanguageRoute extends _i20.PageRouteInfo<void> {
const LanguageRoute({List<_i20.PageRouteInfo>? children})
class LanguageRoute extends _i21.PageRouteInfo<void> {
const LanguageRoute({List<_i21.PageRouteInfo>? children})
: super(LanguageRoute.name, initialChildren: children);
static const String name = 'LanguageRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return const _i7.LanguagePage();
@@ -227,29 +229,29 @@ class LanguageRoute extends _i20.PageRouteInfo<void> {
/// generated route for
/// [_i8.LoginPage]
class LoginRoute extends _i20.PageRouteInfo<void> {
const LoginRoute({List<_i20.PageRouteInfo>? children})
class LoginRoute extends _i21.PageRouteInfo<void> {
const LoginRoute({List<_i21.PageRouteInfo>? children})
: super(LoginRoute.name, initialChildren: children);
static const String name = 'LoginRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return _i20.WrappedRoute(child: const _i8.LoginPage());
return _i21.WrappedRoute(child: const _i8.LoginPage());
},
);
}
/// generated route for
/// [_i9.MainPage]
class MainRoute extends _i20.PageRouteInfo<void> {
const MainRoute({List<_i20.PageRouteInfo>? children})
class MainRoute extends _i21.PageRouteInfo<void> {
const MainRoute({List<_i21.PageRouteInfo>? children})
: super(MainRoute.name, initialChildren: children);
static const String name = 'MainRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return const _i9.MainPage();
@@ -259,11 +261,11 @@ class MainRoute extends _i20.PageRouteInfo<void> {
/// generated route for
/// [_i10.OrderDetailPage]
class OrderDetailRoute extends _i20.PageRouteInfo<OrderDetailRouteArgs> {
class OrderDetailRoute extends _i21.PageRouteInfo<OrderDetailRouteArgs> {
OrderDetailRoute({
_i21.Key? key,
required _i22.Order order,
List<_i20.PageRouteInfo>? children,
_i22.Key? key,
required _i23.Order order,
List<_i21.PageRouteInfo>? children,
}) : super(
OrderDetailRoute.name,
args: OrderDetailRouteArgs(key: key, order: order),
@@ -272,7 +274,7 @@ class OrderDetailRoute extends _i20.PageRouteInfo<OrderDetailRouteArgs> {
static const String name = 'OrderDetailRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
final args = data.argsAs<OrderDetailRouteArgs>();
@@ -284,9 +286,9 @@ class OrderDetailRoute extends _i20.PageRouteInfo<OrderDetailRouteArgs> {
class OrderDetailRouteArgs {
const OrderDetailRouteArgs({this.key, required this.order});
final _i21.Key? key;
final _i22.Key? key;
final _i22.Order order;
final _i23.Order order;
@override
String toString() {
@@ -296,144 +298,160 @@ class OrderDetailRouteArgs {
/// generated route for
/// [_i11.OrderPage]
class OrderRoute extends _i20.PageRouteInfo<void> {
const OrderRoute({List<_i20.PageRouteInfo>? children})
class OrderRoute extends _i21.PageRouteInfo<void> {
const OrderRoute({List<_i21.PageRouteInfo>? children})
: super(OrderRoute.name, initialChildren: children);
static const String name = 'OrderRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return _i20.WrappedRoute(child: const _i11.OrderPage());
return _i21.WrappedRoute(child: const _i11.OrderPage());
},
);
}
/// generated route for
/// [_i12.ProductAnalyticPage]
class ProductAnalyticRoute extends _i20.PageRouteInfo<void> {
const ProductAnalyticRoute({List<_i20.PageRouteInfo>? children})
/// [_i12.OutletInformationPage]
class OutletInformationRoute extends _i21.PageRouteInfo<void> {
const OutletInformationRoute({List<_i21.PageRouteInfo>? children})
: super(OutletInformationRoute.name, initialChildren: children);
static const String name = 'OutletInformationRoute';
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return _i21.WrappedRoute(child: const _i12.OutletInformationPage());
},
);
}
/// generated route for
/// [_i13.ProductAnalyticPage]
class ProductAnalyticRoute extends _i21.PageRouteInfo<void> {
const ProductAnalyticRoute({List<_i21.PageRouteInfo>? children})
: super(ProductAnalyticRoute.name, initialChildren: children);
static const String name = 'ProductAnalyticRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return _i20.WrappedRoute(child: const _i12.ProductAnalyticPage());
return _i21.WrappedRoute(child: const _i13.ProductAnalyticPage());
},
);
}
/// generated route for
/// [_i13.ProductPage]
class ProductRoute extends _i20.PageRouteInfo<void> {
const ProductRoute({List<_i20.PageRouteInfo>? children})
/// [_i14.ProductPage]
class ProductRoute extends _i21.PageRouteInfo<void> {
const ProductRoute({List<_i21.PageRouteInfo>? children})
: super(ProductRoute.name, initialChildren: children);
static const String name = 'ProductRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return _i20.WrappedRoute(child: const _i13.ProductPage());
return _i21.WrappedRoute(child: const _i14.ProductPage());
},
);
}
/// generated route for
/// [_i14.ProfilePage]
class ProfileRoute extends _i20.PageRouteInfo<void> {
const ProfileRoute({List<_i20.PageRouteInfo>? children})
/// [_i15.ProfilePage]
class ProfileRoute extends _i21.PageRouteInfo<void> {
const ProfileRoute({List<_i21.PageRouteInfo>? children})
: super(ProfileRoute.name, initialChildren: children);
static const String name = 'ProfileRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return _i20.WrappedRoute(child: const _i14.ProfilePage());
return _i21.WrappedRoute(child: const _i15.ProfilePage());
},
);
}
/// generated route for
/// [_i15.PurchasePage]
class PurchaseRoute extends _i20.PageRouteInfo<void> {
const PurchaseRoute({List<_i20.PageRouteInfo>? children})
/// [_i16.PurchasePage]
class PurchaseRoute extends _i21.PageRouteInfo<void> {
const PurchaseRoute({List<_i21.PageRouteInfo>? children})
: super(PurchaseRoute.name, initialChildren: children);
static const String name = 'PurchaseRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return const _i15.PurchasePage();
return const _i16.PurchasePage();
},
);
}
/// generated route for
/// [_i16.ReportPage]
class ReportRoute extends _i20.PageRouteInfo<void> {
const ReportRoute({List<_i20.PageRouteInfo>? children})
/// [_i17.ReportPage]
class ReportRoute extends _i21.PageRouteInfo<void> {
const ReportRoute({List<_i21.PageRouteInfo>? children})
: super(ReportRoute.name, initialChildren: children);
static const String name = 'ReportRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return _i20.WrappedRoute(child: const _i16.ReportPage());
return _i21.WrappedRoute(child: const _i17.ReportPage());
},
);
}
/// generated route for
/// [_i17.SalesPage]
class SalesRoute extends _i20.PageRouteInfo<void> {
const SalesRoute({List<_i20.PageRouteInfo>? children})
/// [_i18.SalesPage]
class SalesRoute extends _i21.PageRouteInfo<void> {
const SalesRoute({List<_i21.PageRouteInfo>? children})
: super(SalesRoute.name, initialChildren: children);
static const String name = 'SalesRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return _i20.WrappedRoute(child: const _i17.SalesPage());
return _i21.WrappedRoute(child: const _i18.SalesPage());
},
);
}
/// generated route for
/// [_i18.SchedulePage]
class ScheduleRoute extends _i20.PageRouteInfo<void> {
const ScheduleRoute({List<_i20.PageRouteInfo>? children})
/// [_i19.SchedulePage]
class ScheduleRoute extends _i21.PageRouteInfo<void> {
const ScheduleRoute({List<_i21.PageRouteInfo>? children})
: super(ScheduleRoute.name, initialChildren: children);
static const String name = 'ScheduleRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return const _i18.SchedulePage();
return const _i19.SchedulePage();
},
);
}
/// generated route for
/// [_i19.SplashPage]
class SplashRoute extends _i20.PageRouteInfo<void> {
const SplashRoute({List<_i20.PageRouteInfo>? children})
/// [_i20.SplashPage]
class SplashRoute extends _i21.PageRouteInfo<void> {
const SplashRoute({List<_i21.PageRouteInfo>? children})
: super(SplashRoute.name, initialChildren: children);
static const String name = 'SplashRoute';
static _i20.PageInfo page = _i20.PageInfo(
static _i21.PageInfo page = _i21.PageInfo(
name,
builder: (data) {
return const _i19.SplashPage();
return const _i20.SplashPage();
},
);
}