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

39 lines
1.6 KiB
Dart
Raw Normal View History

2023-05-18 08:04:03 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// StackedDialogGenerator
// **************************************************************************
import 'package:stacked_services/stacked_services.dart';
import 'app.locator.dart';
import '../ui/views/admin_index_tracking/add_siswa_dialog/add_siswa_dialog/add_siswa_dialog_view.dart';
import '../ui/views/admin_index_tracking/edit_siswa/edit_dialog_siswa/edit_dialog_siswa_view.dart';
import '../ui/views/admin_index_tracking/filter_dialog/filter_dialog_view.dart';
2023-08-18 17:36:03 +00:00
import '../ui/views/admin_index_tracking/struktur_organisasi/edit_strukrur_organisasi_dialog/edit_strukrur_organisasi_dialog_view.dart';
2023-05-18 08:04:03 +00:00
enum DialogType {
addSiswaDialogView,
filterDialogView,
2023-08-18 17:36:03 +00:00
editStrukrurOrganisasiDialogView,
editDialogSiswaView,
2023-05-18 08:04:03 +00:00
}
void setupDialogUi() {
final dialogService = locator<DialogService>();
final Map<DialogType, DialogBuilder> builders = {
DialogType.addSiswaDialogView: (context, request, completer) =>
AddSiswaDialogView(request: request, completer: completer),
DialogType.filterDialogView: (context, request, completer) =>
FilterDialogView(request: request, completer: completer),
2023-08-18 17:36:03 +00:00
DialogType.editStrukrurOrganisasiDialogView:
(context, request, completer) => EditStrukrurOrganisasiDialogView(
request: request, completer: completer),
DialogType.editDialogSiswaView: (context, request, completer) =>
EditDialogSiswaView(request: request, completer: completer),
2023-05-18 08:04:03 +00:00
};
dialogService.registerCustomDialogBuilders(builders);
}