kamus-kesehatan/lib/app/app.dart

56 lines
2.1 KiB
Dart
Raw Normal View History

2024-07-27 12:06:56 +00:00
import 'package:kamus_kesehatan/ui/views/user_tracking_index/list_detail_istilah/list_detail_istilah_view.dart';
2024-02-04 12:57:23 +00:00
import 'package:stacked_services/stacked_services.dart';
import 'package:stacked/stacked_annotations.dart';
import '../services/global_var.dart';
import '../services/my_easyloading.dart';
import '../services/my_storage.dart';
import '../services/my_tts.dart';
import '../services/other_function.dart';
import '../ui/views/action_dialog/action_dialog_view.dart';
import '../ui/views/nomor_telpon_dialog/nomor_telpon_dialog_view.dart';
import '../ui/views/splash_screen/splash_screen_view.dart';
2024-07-27 12:06:56 +00:00
import '../ui/views/user_tracking_index/halaman_utama/halaman_utama_view.dart';
// import '../ui/views/user_tracking_index/list_kamus_kesehatan/list_kamus_kesehatan_view.dart';
2024-02-04 12:57:23 +00:00
import '../ui/views/user_tracking_index/profil_user/profil_user_view.dart';
import '../ui/views/user_tracking_index/user_tracking_index_view.dart';
@StackedApp(
routes: [
MaterialRoute(page: SplashScreenView, initial: true),
MaterialRoute(
page: UserTrackingIndexView,
children: [
2024-07-27 12:06:56 +00:00
MaterialRoute(page: HalamanUtamaView),
2024-02-04 12:57:23 +00:00
// MaterialRoute(page: TampilkanListView),
MaterialRoute(page: ProfilUserView),
],
),
2024-07-27 12:06:56 +00:00
MaterialRoute(page: ListDetailIstilahView),
2024-02-04 12:57:23 +00:00
],
dialogs: [
StackedDialog(classType: ActionDialogView),
StackedDialog(classType: NomorTelponDialogView)
],
dependencies: [
LazySingleton(classType: NavigationService),
LazySingleton(classType: DialogService),
LazySingleton(classType: SnackbarService),
LazySingleton(classType: BottomSheetService),
// this below is mine
LazySingleton(classType: MyEasyLoading),
// LazySingleton(classType: MyHttpServices),
LazySingleton(classType: GlobalVar),
LazySingleton(classType: MyFunction),
// LazySingleton(classType: MySharedPrefs)
LazySingleton(classType: MyTts),
LazySingleton(classType: MyStorage),
],
logger: StackedLogger(),
// bottomsheets: [
// StackedBottomsheet(classType: DetailSuaraBottomSheetView),
// StackedBottomsheet(classType: DetailSuaraPemilihBottomSheetView)
// ],
)
class App {}