slight change on add tim survei to add relation with caleg
This commit is contained in:
25
lib/app/app.bottomsheets.dart
Normal file
25
lib/app/app.bottomsheets.dart
Normal file
@ -0,0 +1,25 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
// **************************************************************************
|
||||
// StackedBottomsheetGenerator
|
||||
// **************************************************************************
|
||||
|
||||
import 'package:stacked_services/stacked_services.dart';
|
||||
|
||||
import 'app.locator.dart';
|
||||
import '../ui/views/admin_index_tracking/halaman_caleg/coba_bottom_sheet/coba_bottom_sheet_view.dart';
|
||||
|
||||
enum BottomSheetType {
|
||||
cobaBottomSheetView,
|
||||
}
|
||||
|
||||
void setupBottomSheetUi() {
|
||||
final bottomsheetService = locator<BottomSheetService>();
|
||||
|
||||
final Map<BottomSheetType, SheetBuilder> builders = {
|
||||
BottomSheetType.cobaBottomSheetView: (context, request, completer) =>
|
||||
CobaBottomSheetView(request: request, completer: completer),
|
||||
};
|
||||
|
||||
bottomsheetService.setCustomSheetBuilders(builders);
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
import 'package:cek_suara/ui/views/admin_index_tracking/halaman_caleg/coba_bottom_sheet/coba_bottom_sheet_view.dart';
|
||||
import 'package:stacked_services/stacked_services.dart';
|
||||
import 'package:stacked/stacked_annotations.dart';
|
||||
|
||||
@ -46,6 +47,9 @@ import '../ui/views/splash_screen/splash_screen_view.dart';
|
||||
StackedDialog(classType: TambahEditCalegView),
|
||||
StackedDialog(classType: TambahDetailTimSurveiView)
|
||||
],
|
||||
bottomsheets: [
|
||||
StackedBottomsheet(classType: CobaBottomSheetView),
|
||||
],
|
||||
dependencies: [
|
||||
LazySingleton(classType: NavigationService),
|
||||
LazySingleton(classType: DialogService),
|
||||
|
@ -25,7 +25,7 @@ class CustomBaseViewModel extends BaseViewModel {
|
||||
}
|
||||
|
||||
quitApp(BuildContext context) {
|
||||
globalVar.backPressed = 'cantBack';
|
||||
// globalVar.backPressed = 'cantBack';
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
|
Reference in New Issue
Block a user