add two decimal and add confirm dialog if press back button
This commit is contained in:
@@ -59,9 +59,9 @@ class _FcsShipmentEditorState extends State<FcsShipmentEditor> {
|
||||
_consigneeController.text = _shipment.consignee;
|
||||
_portController.text = _shipment.port;
|
||||
_destinationController.text = _shipment.destination;
|
||||
}else{
|
||||
var mainModel = Provider.of<MainModel>(context,listen: false);
|
||||
_currentShipmentType =mainModel.setting.shipmentTypes[0];
|
||||
} else {
|
||||
var mainModel = Provider.of<MainModel>(context, listen: false);
|
||||
_currentShipmentType = mainModel.setting.shipmentTypes[0];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,11 @@ class _FcsShipmentEditorState extends State<FcsShipmentEditor> {
|
||||
shadowColor: Colors.transparent,
|
||||
leading: new IconButton(
|
||||
icon: new Icon(CupertinoIcons.back, color: primaryColor),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
onPressed: () {
|
||||
showConfirmDialog(context, "back.button_confirm", () {
|
||||
Navigator.of(context).pop();
|
||||
});
|
||||
},
|
||||
),
|
||||
backgroundColor: Colors.white,
|
||||
title: LocalText(
|
||||
|
||||
Reference in New Issue
Block a user