feat : buy page and widgets
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import 'package:rasadyar_auth/auth.dart';
|
||||
import 'package:rasadyar_chicken/presentation/pages/buy/logic.dart';
|
||||
import 'package:rasadyar_chicken/presentation/pages/buy/view.dart';
|
||||
import 'package:rasadyar_chicken/presentation/pages/buys_out_of_province/logic.dart';
|
||||
import 'package:rasadyar_chicken/presentation/pages/buys_out_of_province/view.dart';
|
||||
import 'package:rasadyar_chicken/presentation/pages/entering_the_warehouse/logic.dart';
|
||||
@@ -26,10 +28,11 @@ sealed class ChickenPages {
|
||||
middlewares: [AuthMiddleware()],
|
||||
binding: BindingsBuilder(() {
|
||||
Get.put(RootLogic());
|
||||
Get.lazyPut(()=>HomeLogic());
|
||||
Get.lazyPut(()=>SalesInProvinceLogic());
|
||||
Get.lazyPut(()=>OutOfProvinceLogic());
|
||||
Get.lazyPut(()=>SalesOutOfProvinceLogic());
|
||||
Get.lazyPut(() => HomeLogic());
|
||||
Get.lazyPut(() => BuyLogic());
|
||||
Get.lazyPut(() => SalesInProvinceLogic());
|
||||
Get.lazyPut(() => OutOfProvinceLogic());
|
||||
Get.lazyPut(() => SalesOutOfProvinceLogic());
|
||||
}),
|
||||
),
|
||||
|
||||
@@ -48,8 +51,8 @@ sealed class ChickenPages {
|
||||
page: () => EnteringTheWarehousePage(),
|
||||
middlewares: [AuthMiddleware()],
|
||||
binding: BindingsBuilder(() {
|
||||
Get.lazyPut(()=>EnteringTheWarehouseLogic());
|
||||
Get.lazyPut(()=>RootLogic());
|
||||
Get.lazyPut(() => EnteringTheWarehouseLogic());
|
||||
Get.lazyPut(() => RootLogic());
|
||||
}),
|
||||
),
|
||||
GetPage(
|
||||
@@ -57,22 +60,20 @@ sealed class ChickenPages {
|
||||
page: () => SalesInProvincePage(),
|
||||
middlewares: [AuthMiddleware()],
|
||||
binding: BindingsBuilder(() {
|
||||
Get.lazyPut(()=>SalesInProvinceLogic());
|
||||
Get.lazyPut(()=>RootLogic());
|
||||
Get.lazyPut(() => SalesInProvinceLogic());
|
||||
Get.lazyPut(() => RootLogic());
|
||||
}),
|
||||
),
|
||||
|
||||
|
||||
|
||||
GetPage(
|
||||
name: ChickenRoutes.outOfProvince,
|
||||
page: () => OutOfProvincePage(),
|
||||
middlewares: [AuthMiddleware()],
|
||||
binding: BindingsBuilder(() {
|
||||
Get.lazyPut(()=>OutOfProvinceLogic());
|
||||
Get.lazyPut(() => OutOfProvinceLogic());
|
||||
|
||||
Get.lazyPut(()=>SalesOutOfProvinceLogic());
|
||||
Get.lazyPut(()=>RootLogic());
|
||||
Get.lazyPut(() => SalesOutOfProvinceLogic());
|
||||
Get.lazyPut(() => RootLogic());
|
||||
}),
|
||||
),
|
||||
|
||||
@@ -81,8 +82,8 @@ sealed class ChickenPages {
|
||||
page: () => SalesOutOfProvincePage(),
|
||||
middlewares: [AuthMiddleware()],
|
||||
binding: BindingsBuilder(() {
|
||||
Get.lazyPut(()=>SalesOutOfProvinceLogic());
|
||||
Get.lazyPut(()=>RootLogic());
|
||||
Get.lazyPut(() => SalesOutOfProvinceLogic());
|
||||
Get.lazyPut(() => RootLogic());
|
||||
}),
|
||||
),
|
||||
|
||||
@@ -91,9 +92,11 @@ sealed class ChickenPages {
|
||||
page: () => BuysOutOfProvincePage(),
|
||||
middlewares: [AuthMiddleware()],
|
||||
binding: BindingsBuilder(() {
|
||||
Get.lazyPut(()=>BuysOutOfProvinceLogic());
|
||||
Get.lazyPut(()=>RootLogic());
|
||||
Get.lazyPut(() => BuysOutOfProvinceLogic());
|
||||
Get.lazyPut(() => RootLogic());
|
||||
}),
|
||||
),
|
||||
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
@@ -2,8 +2,9 @@ sealed class ChickenRoutes {
|
||||
ChickenRoutes._();
|
||||
|
||||
static const _base = '/init';
|
||||
static const init = '$_base/init';
|
||||
static const init = '$_base/root';
|
||||
static const home = '$_base/home';
|
||||
static const buy = '$_base/buy';
|
||||
|
||||
static const enteringTheWarehouse = '$_base/enteringTheWarehouse';
|
||||
static const salesInProvince = '$_base/SalesInProvincePage';
|
||||
|
||||
Reference in New Issue
Block a user