2025-09-24 21:42:22 +03:30
|
|
|
import 'package:rasadyar_core/core.dart' hide BaseLogic;
|
2025-08-03 11:55:57 +03:30
|
|
|
import 'package:rasadyar_livestock/presentation/page/auth/logic.dart';
|
|
|
|
|
import 'package:rasadyar_livestock/presentation/page/auth/view.dart';
|
2025-05-21 09:04:21 +03:30
|
|
|
import 'package:rasadyar_livestock/presentation/page/map/logic.dart';
|
2025-08-03 14:17:08 +03:30
|
|
|
import 'package:rasadyar_livestock/presentation/page/map/widget/map_widget/logic.dart';
|
2025-05-21 09:04:21 +03:30
|
|
|
import 'package:rasadyar_livestock/presentation/page/profile/logic.dart';
|
2025-05-24 15:12:40 +03:30
|
|
|
import 'package:rasadyar_livestock/presentation/page/request_tagging/logic.dart';
|
|
|
|
|
import 'package:rasadyar_livestock/presentation/page/request_tagging/view.dart';
|
|
|
|
|
import 'package:rasadyar_livestock/presentation/page/requests/logic.dart';
|
2025-05-21 09:04:21 +03:30
|
|
|
import 'package:rasadyar_livestock/presentation/page/root/logic.dart';
|
2025-05-19 16:17:01 +03:30
|
|
|
import 'package:rasadyar_livestock/presentation/page/root/view.dart';
|
2025-05-25 16:54:43 +03:30
|
|
|
import 'package:rasadyar_livestock/presentation/page/tagging/logic.dart';
|
|
|
|
|
import 'package:rasadyar_livestock/presentation/page/tagging/view.dart';
|
2025-08-04 15:31:34 +03:30
|
|
|
import 'package:rasadyar_livestock/presentation/widgets/base_page/logic.dart';
|
2025-08-03 11:55:57 +03:30
|
|
|
import 'package:rasadyar_livestock/presentation/widgets/captcha/logic.dart';
|
2025-05-21 14:43:26 +03:30
|
|
|
|
2025-08-19 11:22:34 +03:30
|
|
|
|
2025-05-21 09:04:21 +03:30
|
|
|
part 'app_routes.dart';
|
2025-05-19 16:17:01 +03:30
|
|
|
|
|
|
|
|
sealed class LiveStockPages {
|
|
|
|
|
LiveStockPages._();
|
|
|
|
|
|
|
|
|
|
static final pages = [
|
2025-08-03 11:55:57 +03:30
|
|
|
GetPage(
|
|
|
|
|
name: LiveStockRoutes.auth,
|
|
|
|
|
page: () => AuthPage(),
|
|
|
|
|
binding: BindingsBuilder(() {
|
|
|
|
|
Get.lazyPut(() => AuthLogic());
|
|
|
|
|
Get.lazyPut(() => CaptchaWidgetLogic());
|
|
|
|
|
}),
|
|
|
|
|
),
|
2025-05-19 16:17:01 +03:30
|
|
|
GetPage(
|
|
|
|
|
name: LiveStockRoutes.init,
|
|
|
|
|
page: () => RootPage(),
|
|
|
|
|
middlewares: [AuthMiddleware()],
|
|
|
|
|
binding: BindingsBuilder(() {
|
2025-05-21 09:04:21 +03:30
|
|
|
Get.put(RootLogic());
|
2025-05-24 15:12:40 +03:30
|
|
|
Get.lazyPut(() => RequestsLogic());
|
2025-05-21 09:04:21 +03:30
|
|
|
Get.lazyPut(() => MapLogic());
|
|
|
|
|
Get.lazyPut(() => ProfileLogic());
|
2025-05-21 14:43:26 +03:30
|
|
|
Get.lazyPut(() => MapWidgetLogic());
|
2025-08-04 15:31:34 +03:30
|
|
|
Get.lazyPut(() => BaseLogic());
|
2025-05-19 16:17:01 +03:30
|
|
|
}),
|
2025-05-24 15:12:40 +03:30
|
|
|
children: [
|
2025-05-25 16:54:43 +03:30
|
|
|
/*GetPage(
|
2025-05-24 15:12:40 +03:30
|
|
|
name: LiveStockRoutes.requestTagging,
|
|
|
|
|
page: () => RequestTaggingPage(),
|
|
|
|
|
middlewares: [AuthMiddleware()],
|
|
|
|
|
binding: BindingsBuilder(() {
|
|
|
|
|
Get.lazyPut(() => RequestTaggingLogic());
|
|
|
|
|
}),
|
2025-05-25 16:54:43 +03:30
|
|
|
),*/
|
|
|
|
|
],
|
2025-05-19 16:17:01 +03:30
|
|
|
),
|
2025-05-25 16:54:43 +03:30
|
|
|
GetPage(
|
|
|
|
|
name: LiveStockRoutes.requestTagging,
|
|
|
|
|
page: () => RequestTaggingPage(),
|
|
|
|
|
middlewares: [AuthMiddleware()],
|
|
|
|
|
binding: BindingsBuilder(() {
|
|
|
|
|
Get.lazyPut(() => RequestTaggingLogic());
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
GetPage(
|
|
|
|
|
name: LiveStockRoutes.tagging,
|
|
|
|
|
page: () => TaggingPage(),
|
|
|
|
|
middlewares: [AuthMiddleware()],
|
|
|
|
|
binding: BindingsBuilder(() {
|
|
|
|
|
Get.lazyPut(() => TaggingLogic());
|
|
|
|
|
}),
|
|
|
|
|
),
|
2025-05-19 16:17:01 +03:30
|
|
|
];
|
|
|
|
|
}
|