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';
|
2023-08-20 19:46:54 +00:00
|
|
|
import '../ui/views/admin_index_tracking/edit_siswa/edit_dialog_siswa/edit_dialog_siswa_view.dart';
|
2023-08-03 09:58:40 +00:00
|
|
|
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,
|
2023-08-03 09:58:40 +00:00
|
|
|
filterDialogView,
|
2023-08-18 17:36:03 +00:00
|
|
|
editStrukrurOrganisasiDialogView,
|
2023-08-20 19:46:54 +00:00
|
|
|
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),
|
2023-08-03 09:58:40 +00:00
|
|
|
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),
|
2023-08-20 19:46:54 +00:00
|
|
|
DialogType.editDialogSiswaView: (context, request, completer) =>
|
|
|
|
EditDialogSiswaView(request: request, completer: completer),
|
2023-05-18 08:04:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dialogService.registerCustomDialogBuilders(builders);
|
|
|
|
}
|