fix : page name and routes and controller
This commit is contained in:
@@ -550,14 +550,14 @@ class RootPage extends GetView<RootLogic> {
|
||||
title: 'فروش داخل استان',
|
||||
iconPath: Assets.icons.inside.path,
|
||||
onTap: () {
|
||||
Get.toNamed(ChickenRoutes.salesWithinProvince);
|
||||
Get.toNamed(ChickenRoutes.salesInProvince);
|
||||
},
|
||||
),
|
||||
cardWidget(
|
||||
title: 'فروش خارج استان',
|
||||
iconPath: Assets.icons.outside.path,
|
||||
onTap: () {
|
||||
Get.toNamed(ChickenRoutes.salesWithOutProvince);
|
||||
Get.toNamed(ChickenRoutes.salesOutOfProvince);
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:rasadyar_chicken/data/models/response/roles_products/roles_produ
|
||||
import 'package:rasadyar_chicken/presentation/pages/root/logic.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
|
||||
class SalesWithinProvinceLogic extends GetxController {
|
||||
class SalesInProvinceLogic extends GetxController {
|
||||
var rootLogic = Get.find<RootLogic>();
|
||||
Rxn<AllocatedMadeModel> allocatedMadeModel = Rxn<AllocatedMadeModel>();
|
||||
RxList<ProductModel> rolesProductsModel = RxList<ProductModel>();
|
||||
@@ -8,8 +8,8 @@ import 'package:rasadyar_core/core.dart';
|
||||
|
||||
import 'logic.dart';
|
||||
|
||||
class SalesWithinProvincePage extends GetView<SalesWithinProvinceLogic> {
|
||||
SalesWithinProvincePage({super.key});
|
||||
class SalesInProvincePage extends GetView<SalesInProvinceLogic> {
|
||||
SalesInProvincePage({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -559,7 +559,7 @@ class SalesWithinProvincePage extends GetView<SalesWithinProvinceLogic> {
|
||||
}
|
||||
|
||||
Widget productDropDown() {
|
||||
return GetBuilder<SalesWithinProvinceLogic>(
|
||||
return GetBuilder<SalesInProvinceLogic>(
|
||||
builder: (controller) {
|
||||
return DropdownButtonFormField<ProductModel>(
|
||||
value: controller.selectedProductModel.value,
|
||||
@@ -8,7 +8,7 @@ import 'package:rasadyar_chicken/data/models/response/steward_free_bar_dashboard
|
||||
import 'package:rasadyar_chicken/presentation/pages/root/logic.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
|
||||
class SalesWithOutProvinceLogic extends GetxController {
|
||||
class SalesOutOfProvinceLogic extends GetxController {
|
||||
var rootLogic = Get.find<RootLogic>();
|
||||
Rxn<AllocatedMadeModel> allocatedMadeModel = Rxn<AllocatedMadeModel>();
|
||||
RxList<ProductModel> rolesProductsModel = RxList<ProductModel>();
|
||||
@@ -5,8 +5,8 @@ import 'package:rasadyar_core/core.dart';
|
||||
|
||||
import 'logic.dart';
|
||||
|
||||
class SalesWithOutProvincePage extends GetView<SalesWithOutProvinceLogic> {
|
||||
SalesWithOutProvincePage({super.key});
|
||||
class SalesOutOfProvincePage extends GetView<SalesOutOfProvinceLogic> {
|
||||
SalesOutOfProvincePage({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Reference in New Issue
Block a user