panti-asuhan-app/lib/app/app.router.dart

610 lines
19 KiB
Dart
Raw Normal View History

2023-03-30 07:34:12 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// StackedNavigatorGenerator
// **************************************************************************
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:flutter/material.dart' as _i7;
2023-03-30 07:34:12 +00:00
import 'package:flutter/material.dart';
import 'package:panti_asuhan/ui/views/admin_index_tracking/admin_index/admin_index_view.dart'
as _i8;
2023-03-30 07:34:12 +00:00
import 'package:panti_asuhan/ui/views/admin_index_tracking/admin_index_tracking_view.dart'
as _i4;
import 'package:panti_asuhan/ui/views/admin_index_tracking/dana_sosial_admin/dana_sosial_admin_view.dart'
as _i9;
import 'package:panti_asuhan/ui/views/admin_index_tracking/data_siswa/data_siswa_view.dart'
2023-05-18 08:04:03 +00:00
as _i10;
import 'package:panti_asuhan/ui/views/admin_index_tracking/edit_siswa/edit_siswa_view.dart'
as _i6;
import 'package:panti_asuhan/ui/views/admin_index_tracking/profil/profil_view.dart'
as _i11;
import 'package:panti_asuhan/ui/views/admin_index_tracking/sejarah/sejarah_view.dart'
as _i13;
import 'package:panti_asuhan/ui/views/admin_index_tracking/struktur_organisasi/struktur_organisasi_view.dart'
as _i14;
import 'package:panti_asuhan/ui/views/admin_index_tracking/visi_misi/visi_misi_view.dart'
as _i12;
2023-03-30 07:34:12 +00:00
import 'package:panti_asuhan/ui/views/login_screen/login_screen_view.dart'
as _i3;
import 'package:panti_asuhan/ui/views/splash_screen/splash_screen_view.dart'
as _i2;
2023-05-18 08:04:03 +00:00
import 'package:panti_asuhan/ui/views/tambah_dana_sosial/tambah_dana_sosial_view.dart'
as _i5;
2023-03-30 07:34:12 +00:00
import 'package:stacked/stacked.dart' as _i1;
import 'package:stacked_services/stacked_services.dart' as _i15;
2023-03-30 07:34:12 +00:00
class Routes {
static const splashScreenView = '/';
static const loginScreenView = '/login-screen-view';
static const adminIndexTrackingView = '/admin-index-tracking-view';
2023-05-18 08:04:03 +00:00
static const tambahDanaSosialView = '/tambah-dana-sosial-view';
static const editSiswaView = '/edit-siswa-view';
2023-03-30 07:34:12 +00:00
static const all = <String>{
splashScreenView,
loginScreenView,
adminIndexTrackingView,
2023-05-18 08:04:03 +00:00
tambahDanaSosialView,
editSiswaView,
2023-03-30 07:34:12 +00:00
};
}
class StackedRouter extends _i1.RouterBase {
final _routes = <_i1.RouteDef>[
_i1.RouteDef(
Routes.splashScreenView,
page: _i2.SplashScreenView,
),
_i1.RouteDef(
Routes.loginScreenView,
page: _i3.LoginScreenView,
),
_i1.RouteDef(
Routes.adminIndexTrackingView,
page: _i4.AdminIndexTrackingView,
),
2023-05-18 08:04:03 +00:00
_i1.RouteDef(
Routes.tambahDanaSosialView,
page: _i5.TambahDanaSosialView,
),
_i1.RouteDef(
Routes.editSiswaView,
page: _i6.EditSiswaView,
),
2023-03-30 07:34:12 +00:00
];
final _pagesMap = <Type, _i1.StackedRouteFactory>{
_i2.SplashScreenView: (data) {
return _i7.MaterialPageRoute<dynamic>(
2023-03-30 07:34:12 +00:00
builder: (context) => const _i2.SplashScreenView(),
settings: data,
maintainState: false,
);
},
_i3.LoginScreenView: (data) {
return _i7.MaterialPageRoute<dynamic>(
2023-03-30 07:34:12 +00:00
builder: (context) => const _i3.LoginScreenView(),
settings: data,
maintainState: false,
);
},
_i4.AdminIndexTrackingView: (data) {
return _i7.MaterialPageRoute<dynamic>(
2023-03-30 07:34:12 +00:00
builder: (context) => const _i4.AdminIndexTrackingView(),
settings: data,
maintainState: false,
);
},
2023-05-18 08:04:03 +00:00
_i5.TambahDanaSosialView: (data) {
return _i7.MaterialPageRoute<dynamic>(
2023-05-18 10:58:21 +00:00
builder: (context) => const _i5.TambahDanaSosialView(),
2023-05-18 08:04:03 +00:00
settings: data,
maintainState: false,
);
},
_i6.EditSiswaView: (data) {
final args = data.getArgs<EditSiswaViewArguments>(nullOk: false);
return _i7.MaterialPageRoute<dynamic>(
builder: (context) =>
_i6.EditSiswaView(idSiswa: args.idSiswa, key: args.key),
settings: data,
maintainState: false,
);
},
2023-03-30 07:34:12 +00:00
};
@override
List<_i1.RouteDef> get routes => _routes;
@override
Map<Type, _i1.StackedRouteFactory> get pagesMap => _pagesMap;
}
class EditSiswaViewArguments {
const EditSiswaViewArguments({
required this.idSiswa,
this.key,
});
final int idSiswa;
final _i7.Key? key;
@override
String toString() {
return '{"idSiswa": "$idSiswa", "key": "$key"}';
}
}
2023-03-30 07:34:12 +00:00
class AdminIndexTrackingViewRoutes {
static const adminIndexView = '';
static const danaSosialAdminView = 'dana-sosial-admin-view';
static const dataSiswaView = 'data-siswa-view';
static const profilView = 'profil-view';
static const visiMisiView = 'visi-misi-view';
static const sejarahView = 'sejarah-view';
static const strukturOrganisasiView = 'struktur-organisasi-view';
2023-03-30 07:34:12 +00:00
static const all = <String>{
adminIndexView,
danaSosialAdminView,
dataSiswaView,
profilView,
visiMisiView,
sejarahView,
strukturOrganisasiView,
2023-03-30 07:34:12 +00:00
};
}
class AdminIndexTrackingViewRouter extends _i1.RouterBase {
final _routes = <_i1.RouteDef>[
_i1.RouteDef(
AdminIndexTrackingViewRoutes.adminIndexView,
page: _i8.AdminIndexView,
2023-03-30 07:34:12 +00:00
),
_i1.RouteDef(
AdminIndexTrackingViewRoutes.danaSosialAdminView,
page: _i9.DanaSosialAdminView,
2023-03-30 07:34:12 +00:00
),
_i1.RouteDef(
AdminIndexTrackingViewRoutes.dataSiswaView,
page: _i10.DataSiswaView,
2023-03-30 07:34:12 +00:00
),
_i1.RouteDef(
AdminIndexTrackingViewRoutes.profilView,
page: _i11.ProfilView,
),
_i1.RouteDef(
AdminIndexTrackingViewRoutes.visiMisiView,
page: _i12.VisiMisiView,
),
_i1.RouteDef(
AdminIndexTrackingViewRoutes.sejarahView,
page: _i13.SejarahView,
),
_i1.RouteDef(
AdminIndexTrackingViewRoutes.strukturOrganisasiView,
page: _i14.StrukturOrganisasiView,
2023-03-30 07:34:12 +00:00
),
];
final _pagesMap = <Type, _i1.StackedRouteFactory>{
_i8.AdminIndexView: (data) {
return _i7.MaterialPageRoute<dynamic>(
builder: (context) => const _i8.AdminIndexView(),
settings: data,
maintainState: false,
);
},
_i9.DanaSosialAdminView: (data) {
return _i7.MaterialPageRoute<dynamic>(
builder: (context) => const _i9.DanaSosialAdminView(),
2023-03-30 07:34:12 +00:00
settings: data,
maintainState: false,
);
},
_i10.DataSiswaView: (data) {
return _i7.MaterialPageRoute<dynamic>(
builder: (context) => const _i10.DataSiswaView(),
2023-03-30 07:34:12 +00:00
settings: data,
maintainState: false,
);
},
_i11.ProfilView: (data) {
return _i7.MaterialPageRoute<dynamic>(
builder: (context) => const _i11.ProfilView(),
2023-03-30 07:34:12 +00:00
settings: data,
maintainState: false,
);
},
_i12.VisiMisiView: (data) {
return _i7.MaterialPageRoute<dynamic>(
builder: (context) => _i12.VisiMisiView(),
settings: data,
maintainState: false,
);
},
_i13.SejarahView: (data) {
return _i7.MaterialPageRoute<dynamic>(
builder: (context) => _i13.SejarahView(),
settings: data,
maintainState: false,
);
},
_i14.StrukturOrganisasiView: (data) {
return _i7.MaterialPageRoute<dynamic>(
builder: (context) => _i14.StrukturOrganisasiView(),
2023-03-30 07:34:12 +00:00
settings: data,
maintainState: false,
);
},
};
@override
List<_i1.RouteDef> get routes => _routes;
@override
Map<Type, _i1.StackedRouteFactory> get pagesMap => _pagesMap;
}
extension NavigatorStateExtension on _i15.NavigationService {
2023-03-30 07:34:12 +00:00
Future<dynamic> navigateToSplashScreenView([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return navigateTo<dynamic>(Routes.splashScreenView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> navigateToLoginScreenView([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return navigateTo<dynamic>(Routes.loginScreenView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> navigateToAdminIndexTrackingView([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return navigateTo<dynamic>(Routes.adminIndexTrackingView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
2023-05-18 08:04:03 +00:00
Future<dynamic> navigateToTambahDanaSosialView([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return navigateTo<dynamic>(Routes.tambahDanaSosialView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> navigateToEditSiswaView({
required int idSiswa,
_i7.Key? key,
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
}) async {
return navigateTo<dynamic>(Routes.editSiswaView,
arguments: EditSiswaViewArguments(idSiswa: idSiswa, key: key),
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
2023-03-30 07:34:12 +00:00
Future<dynamic> navigateToNestedAdminIndexViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return navigateTo<dynamic>(AdminIndexTrackingViewRoutes.adminIndexView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic>
navigateToNestedDanaSosialAdminViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return navigateTo<dynamic>(AdminIndexTrackingViewRoutes.danaSosialAdminView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> navigateToNestedDataSiswaViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return navigateTo<dynamic>(AdminIndexTrackingViewRoutes.dataSiswaView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> navigateToNestedProfilViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return navigateTo<dynamic>(AdminIndexTrackingViewRoutes.profilView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> navigateToNestedVisiMisiViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return navigateTo<dynamic>(AdminIndexTrackingViewRoutes.visiMisiView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> navigateToNestedSejarahViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return navigateTo<dynamic>(AdminIndexTrackingViewRoutes.sejarahView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic>
navigateToNestedStrukturOrganisasiViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return navigateTo<dynamic>(
AdminIndexTrackingViewRoutes.strukturOrganisasiView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
2023-03-30 07:34:12 +00:00
Future<dynamic> replaceWithSplashScreenView([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return replaceWith<dynamic>(Routes.splashScreenView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> replaceWithLoginScreenView([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return replaceWith<dynamic>(Routes.loginScreenView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> replaceWithAdminIndexTrackingView([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return replaceWith<dynamic>(Routes.adminIndexTrackingView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
2023-05-18 08:04:03 +00:00
}
Future<dynamic> replaceWithTambahDanaSosialView([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return replaceWith<dynamic>(Routes.tambahDanaSosialView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
2023-03-30 07:34:12 +00:00
}
Future<dynamic> replaceWithEditSiswaView({
required int idSiswa,
_i7.Key? key,
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
}) async {
return replaceWith<dynamic>(Routes.editSiswaView,
arguments: EditSiswaViewArguments(idSiswa: idSiswa, key: key),
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
2023-03-30 07:34:12 +00:00
Future<dynamic>
replaceWithNestedAdminIndexViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return replaceWith<dynamic>(AdminIndexTrackingViewRoutes.adminIndexView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic>
replaceWithNestedDanaSosialAdminViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return replaceWith<dynamic>(
AdminIndexTrackingViewRoutes.danaSosialAdminView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> replaceWithNestedDataSiswaViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return replaceWith<dynamic>(AdminIndexTrackingViewRoutes.dataSiswaView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> replaceWithNestedProfilViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return replaceWith<dynamic>(AdminIndexTrackingViewRoutes.profilView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> replaceWithNestedVisiMisiViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return replaceWith<dynamic>(AdminIndexTrackingViewRoutes.visiMisiView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic> replaceWithNestedSejarahViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return replaceWith<dynamic>(AdminIndexTrackingViewRoutes.sejarahView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
Future<dynamic>
replaceWithNestedStrukturOrganisasiViewInAdminIndexTrackingViewRouter([
int? routerId,
bool preventDuplicates = true,
Map<String, String>? parameters,
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
transition,
]) async {
return replaceWith<dynamic>(
AdminIndexTrackingViewRoutes.strukturOrganisasiView,
id: routerId,
preventDuplicates: preventDuplicates,
parameters: parameters,
transition: transition);
}
2023-03-30 07:34:12 +00:00
}