feat : sale in province / but out of province / out of province page
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import 'package:rasadyar_auth/auth.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';
|
||||
import 'package:rasadyar_chicken/presentation/pages/entering_the_warehouse/view.dart';
|
||||
import 'package:rasadyar_chicken/presentation/pages/home/logic.dart';
|
||||
import 'package:rasadyar_chicken/presentation/pages/home/view.dart';
|
||||
import 'package:rasadyar_chicken/presentation/pages/out_of_province/logic.dart';
|
||||
import 'package:rasadyar_chicken/presentation/pages/root/logic.dart';
|
||||
import 'package:rasadyar_chicken/presentation/pages/root/view.dart';
|
||||
import 'package:rasadyar_chicken/presentation/pages/sales_in_province/logic.dart';
|
||||
@@ -24,7 +27,7 @@ sealed class ChickenPages {
|
||||
Get.put(RootLogic());
|
||||
Get.lazyPut(()=>HomeLogic());
|
||||
Get.lazyPut(()=>SalesInProvinceLogic());
|
||||
Get.lazyPut(()=>SalesOutOfProvinceLogic());
|
||||
Get.lazyPut(()=>OutOfProvinceLogic());
|
||||
}),
|
||||
),
|
||||
|
||||
@@ -65,5 +68,15 @@ sealed class ChickenPages {
|
||||
Get.put(RootLogic());
|
||||
}),
|
||||
),
|
||||
|
||||
GetPage(
|
||||
name: ChickenRoutes.buysOutOfProvince,
|
||||
page: () => BuysOutOfProvincePage(),
|
||||
middlewares: [AuthMiddleware()],
|
||||
binding: BindingsBuilder(() {
|
||||
Get.put(BuysOutOfProvinceLogic());
|
||||
Get.put(RootLogic());
|
||||
}),
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
sealed class ChickenRoutes {
|
||||
ChickenRoutes._();
|
||||
|
||||
static const _base = '/init';
|
||||
static const init = '$_base/init';
|
||||
static const home = '$_base/home';
|
||||
|
||||
static const enteringTheWarehouse = '$_base/enteringTheWarehouse';
|
||||
static const salesInProvince = '$_base/SalesInProvincePage';
|
||||
static const salesOutOfProvince = '$_base/SalesOutOfProvincePage';
|
||||
static const outOfProvince = '$_base/OutOfProvincePage';
|
||||
|
||||
static const salesOutOfProvince = '$outOfProvince/saleOutOfProvince';
|
||||
static const buysOutOfProvince = '$outOfProvince/buyOutOfProvince';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user