feat: Initialize project
This commit is contained in:
30
lib/app/app.dart
Normal file
30
lib/app/app.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
import 'package:bahla_front/ui/bottom_sheets/notice/notice_sheet.dart';
|
||||
import 'package:bahla_front/ui/dialogs/info_alert/info_alert_dialog.dart';
|
||||
import 'package:bahla_front/ui/views/home/home_view.dart';
|
||||
import 'package:bahla_front/ui/views/startup/startup_view.dart';
|
||||
import 'package:stacked/stacked_annotations.dart';
|
||||
import 'package:stacked_services/stacked_services.dart';
|
||||
// @stacked-import
|
||||
|
||||
@StackedApp(
|
||||
routes: [
|
||||
MaterialRoute(page: HomeView),
|
||||
MaterialRoute(page: StartupView),
|
||||
// @stacked-route
|
||||
],
|
||||
dependencies: [
|
||||
LazySingleton(classType: BottomSheetService),
|
||||
LazySingleton(classType: DialogService),
|
||||
LazySingleton(classType: NavigationService),
|
||||
// @stacked-service
|
||||
],
|
||||
bottomsheets: [
|
||||
StackedBottomsheet(classType: NoticeSheet),
|
||||
// @stacked-bottom-sheet
|
||||
],
|
||||
dialogs: [
|
||||
StackedDialog(classType: InfoAlertDialog),
|
||||
// @stacked-dialog
|
||||
],
|
||||
)
|
||||
class App {}
|
||||
Reference in New Issue
Block a user