72 lines
2.2 KiB
Dart
72 lines
2.2 KiB
Dart
import 'package:rasadyar_core/core.dart';
|
|
|
|
import '../action/logic.dart';
|
|
import '../add_mobile_inspector/logic.dart';
|
|
import '../add_mobile_inspector/view.dart';
|
|
import '../add_supervision/logic.dart';
|
|
import '../add_supervision/view.dart';
|
|
import '../display_information/logic.dart';
|
|
import '../display_information/view.dart';
|
|
import '../filter/logic.dart';
|
|
import '../location_details/logic.dart';
|
|
import '../location_details/view.dart';
|
|
import '../profile/logic.dart';
|
|
import '../profile/view.dart';
|
|
import '../registration_of_violation/logic.dart';
|
|
import '../registration_of_violation/view.dart';
|
|
import '../root/logic.dart';
|
|
import '../root/view.dart';
|
|
import 'app_routes.dart';
|
|
|
|
|
|
sealed class InspectionPages {
|
|
InspectionPages._();
|
|
|
|
static final pages = [
|
|
GetPage(
|
|
name: InspectionRoutes.inspection,
|
|
page: () => RootPage(),
|
|
binding: BindingsBuilder(() {
|
|
Get.put(RootLogic());
|
|
Get.put(InspectorFilterLogic());
|
|
Get.lazyPut(() => LocationDetailsLogic(), fenix: true);
|
|
Get.lazyPut(() => ActionLogic(), fenix: true);
|
|
Get.lazyPut(() => ProfileLogic(), fenix: true);
|
|
}),
|
|
),
|
|
|
|
GetPage(
|
|
name: InspectionRoutes.inspectionLocationDetails,
|
|
page: () => LocationDetailsPage(),
|
|
bindings: [BindingsBuilder.put(() => LocationDetailsLogic())],
|
|
),
|
|
|
|
GetPage(
|
|
name: InspectionRoutes.inspectionAddSupervision,
|
|
page: () => AddSupervisionPage(),
|
|
binding: BindingsBuilder.put(() => AddSupervisionLogic()),
|
|
),
|
|
GetPage(
|
|
name: InspectionRoutes.inspectionRegistrationOfViolation,
|
|
page: () => RegistrationOfViolationPage(),
|
|
binding: BindingsBuilder.put(() => RegistrationOfViolationLogic()),
|
|
),
|
|
|
|
GetPage(
|
|
name: InspectionRoutes.inspectionDisplayInformation,
|
|
page: () => DisplayInformationPage(),
|
|
binding: BindingsBuilder.put(() => DisplayInformationLogic()),
|
|
),
|
|
GetPage(
|
|
name: InspectionRoutes.inspectionUserProfile,
|
|
page: () => ProfilePage(),
|
|
binding: BindingsBuilder.put(() => ProfileLogic()),
|
|
),
|
|
GetPage(
|
|
name: InspectionRoutes.inspectionAddMobileInspector,
|
|
page: () => AddMobileInspectorPage(),
|
|
binding: BindingsBuilder.put(() => AddMobileInspectorLogic()),
|
|
),
|
|
];
|
|
}
|