| 440505e9ea1eee7043d2cbfeb318f6bc | |||||
| af0eb765f94aecba228edd3e3fe3c4f4 |
| "$(inherited)", | "$(inherited)", | ||||
| "$(PROJECT_DIR)/Flutter", | "$(PROJECT_DIR)/Flutter", | ||||
| ); | ); | ||||
| MARKETING_VERSION = 0.4.0; | |||||
| MARKETING_VERSION = 0.7.0; | |||||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | ||||
| PRODUCT_NAME = Runner; | PRODUCT_NAME = Runner; | ||||
| SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | ||||
| "$(inherited)", | "$(inherited)", | ||||
| "$(PROJECT_DIR)/Flutter", | "$(PROJECT_DIR)/Flutter", | ||||
| ); | ); | ||||
| MARKETING_VERSION = 0.4.0; | |||||
| MARKETING_VERSION = 0.7.0; | |||||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | ||||
| PRODUCT_NAME = Runner; | PRODUCT_NAME = Runner; | ||||
| SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | ||||
| "$(inherited)", | "$(inherited)", | ||||
| "$(PROJECT_DIR)/Flutter", | "$(PROJECT_DIR)/Flutter", | ||||
| ); | ); | ||||
| MARKETING_VERSION = 0.4.0; | |||||
| MARKETING_VERSION = 0.7.0; | |||||
| PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | PRODUCT_BUNDLE_IDENTIFIER = vn.azteam.tpfarm; | ||||
| PRODUCT_NAME = Runner; | PRODUCT_NAME = Runner; | ||||
| SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; |
| color: Colors.yellow, | color: Colors.yellow, | ||||
| ), | ), | ||||
| snackPosition: SnackPosition.BOTTOM, | snackPosition: SnackPosition.BOTTOM, | ||||
| duration: Duration(seconds: 30), | |||||
| backgroundColor: Colors.yellow[50]); | backgroundColor: Colors.yellow[50]); | ||||
| } | } | ||||
| static void showDialog( | |||||
| {@required String title, | |||||
| @required String message, | |||||
| @required String textConfirm, | |||||
| @required String textCancel, | |||||
| @required Function() onConfirm}) { | |||||
| if (Get.isDialogOpen) Get.back(); | |||||
| Get.defaultDialog( | |||||
| title: title, | |||||
| middleText: message, | |||||
| textConfirm: textConfirm, | |||||
| textCancel: textCancel, | |||||
| confirmTextColor: Colors.white, | |||||
| onConfirm: onConfirm, | |||||
| ); | |||||
| } | |||||
| static void showDialogConfirmSupply({@required Function() onConfirm}) { | |||||
| if (Get.isDialogOpen) Get.back(); | |||||
| Get.defaultDialog( | |||||
| title: "Vật tư chưa được thêm", | |||||
| middleText: "Bạn có muốn cập nhật?", | |||||
| textConfirm: "Tiếp tục", | |||||
| textCancel: "Xem lại", | |||||
| confirmTextColor: Colors.white, | |||||
| onConfirm: onConfirm); | |||||
| } | |||||
| } | } |
| import 'package:farm_tpf/presentation/screens/actions/controller/ChangeSupplyUsing.dart'; | import 'package:farm_tpf/presentation/screens/actions/controller/ChangeSupplyUsing.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/dung/widget_dung_supply.dart'; | import 'package:farm_tpf/presentation/screens/actions/dung/widget_dung_supply.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_file_controller.dart'; | import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_file_controller.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_supply.dart'; | |||||
| import 'package:farm_tpf/utils/const_common.dart'; | import 'package:farm_tpf/utils/const_common.dart'; | ||||
| import 'package:farm_tpf/utils/const_string.dart'; | import 'package:farm_tpf/utils/const_string.dart'; | ||||
| import 'package:farm_tpf/utils/const_style.dart'; | import 'package:farm_tpf/utils/const_style.dart'; | ||||
| if (!currentFocus.hasPrimaryFocus) { | if (!currentFocus.hasPrimaryFocus) { | ||||
| currentFocus.unfocus(); | currentFocus.unfocus(); | ||||
| } | } | ||||
| _validateInputs(); | |||||
| if (Get.find<ChangeSupply>().selectedSupplyId > 0) { | |||||
| Utils.showDialogConfirmSupply(onConfirm: () { | |||||
| Get.back(); | |||||
| _validateInputs(); | |||||
| }); | |||||
| } else { | |||||
| _validateInputs(); | |||||
| } | |||||
| }, | }, | ||||
| ); | ); | ||||
| return <Widget>[iconButton]; | return <Widget>[iconButton]; |
| import 'package:farm_tpf/presentation/screens/actions/controller/ChangeSupplyUsing.dart'; | import 'package:farm_tpf/presentation/screens/actions/controller/ChangeSupplyUsing.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/harvest_process/widget_harvest_process_supply.dart'; | import 'package:farm_tpf/presentation/screens/actions/harvest_process/widget_harvest_process_supply.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_file_controller.dart'; | import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_file_controller.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_supply.dart'; | |||||
| import 'package:farm_tpf/utils/const_common.dart'; | import 'package:farm_tpf/utils/const_common.dart'; | ||||
| import 'package:farm_tpf/utils/const_string.dart'; | import 'package:farm_tpf/utils/const_string.dart'; | ||||
| import 'package:farm_tpf/utils/const_style.dart'; | import 'package:farm_tpf/utils/const_style.dart'; | ||||
| if (!currentFocus.hasPrimaryFocus) { | if (!currentFocus.hasPrimaryFocus) { | ||||
| currentFocus.unfocus(); | currentFocus.unfocus(); | ||||
| } | } | ||||
| _validateInputs(); | |||||
| if (Get.find<ChangeSupply>().selectedSupplyId > 0) { | |||||
| Utils.showDialogConfirmSupply(onConfirm: () { | |||||
| Get.back(); | |||||
| _validateInputs(); | |||||
| }); | |||||
| } else { | |||||
| _validateInputs(); | |||||
| } | |||||
| }, | }, | ||||
| ); | ); | ||||
| return <Widget>[iconButton]; | return <Widget>[iconButton]; |
| import 'package:farm_tpf/presentation/screens/actions/controller/ChangeSupplyUsing.dart'; | import 'package:farm_tpf/presentation/screens/actions/controller/ChangeSupplyUsing.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/plant/widget_plant_supply.dart'; | import 'package:farm_tpf/presentation/screens/actions/plant/widget_plant_supply.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_file_controller.dart'; | import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_file_controller.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_supply.dart'; | |||||
| import 'package:farm_tpf/utils/const_common.dart'; | import 'package:farm_tpf/utils/const_common.dart'; | ||||
| import 'package:farm_tpf/utils/const_string.dart'; | import 'package:farm_tpf/utils/const_string.dart'; | ||||
| import 'package:farm_tpf/utils/const_style.dart'; | import 'package:farm_tpf/utils/const_style.dart'; | ||||
| if (!currentFocus.hasPrimaryFocus) { | if (!currentFocus.hasPrimaryFocus) { | ||||
| currentFocus.unfocus(); | currentFocus.unfocus(); | ||||
| } | } | ||||
| _validateInputs(); | |||||
| if (Get.find<ChangeSupply>().selectedSupplyId > 0) { | |||||
| Utils.showDialogConfirmSupply(onConfirm: () { | |||||
| Get.back(); | |||||
| _validateInputs(); | |||||
| }); | |||||
| } else { | |||||
| _validateInputs(); | |||||
| } | |||||
| }, | }, | ||||
| ); | ); | ||||
| return <Widget>[iconButton]; | return <Widget>[iconButton]; |
| import 'package:farm_tpf/presentation/screens/actions/controller/ChangeSupplyUsing.dart'; | import 'package:farm_tpf/presentation/screens/actions/controller/ChangeSupplyUsing.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/spraying/widget_spraying_supply.dart'; | import 'package:farm_tpf/presentation/screens/actions/spraying/widget_spraying_supply.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_file_controller.dart'; | import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_file_controller.dart'; | ||||
| import 'package:farm_tpf/presentation/screens/actions/state_management_helper/change_supply.dart'; | |||||
| import 'package:farm_tpf/utils/const_common.dart'; | import 'package:farm_tpf/utils/const_common.dart'; | ||||
| import 'package:farm_tpf/utils/const_string.dart'; | import 'package:farm_tpf/utils/const_string.dart'; | ||||
| import 'package:farm_tpf/utils/const_style.dart'; | import 'package:farm_tpf/utils/const_style.dart'; | ||||
| if (!currentFocus.hasPrimaryFocus) { | if (!currentFocus.hasPrimaryFocus) { | ||||
| currentFocus.unfocus(); | currentFocus.unfocus(); | ||||
| } | } | ||||
| _validateInputs(); | |||||
| if (Get.find<ChangeSupply>().selectedSupplyId > 0) { | |||||
| Utils.showDialogConfirmSupply(onConfirm: () { | |||||
| Get.back(); | |||||
| _validateInputs(); | |||||
| }); | |||||
| } else { | |||||
| _validateInputs(); | |||||
| } | |||||
| }, | }, | ||||
| ); | ); | ||||
| return <Widget>[iconButton]; | return <Widget>[iconButton]; |
| description: A new Flutter project. | description: A new Flutter project. | ||||
| publish_to: 'none' | publish_to: 'none' | ||||
| version: 0.6.0+1 | |||||
| version: 0.7.0+1 | |||||
| environment: | environment: | ||||
| sdk: ">=2.7.0 <3.0.0" | sdk: ">=2.7.0 <3.0.0" |