update image resolution and search bar cursor color
This commit is contained in:
@@ -83,10 +83,15 @@ class _FcsShipmentEditorState extends State<FcsShipmentEditor> {
|
||||
_currentDestination =
|
||||
loadingDestination.isNotEmpty ? loadingDestination.first : null;
|
||||
} else {
|
||||
_currentShipmentType = model.shipmentTypes.first;
|
||||
_currentConsignee = model.shipmentConsingees.first;
|
||||
_currentLoadingPort = model.shipmentPorts.first;
|
||||
_currentDestination = model.shipmentPorts.first;
|
||||
_currentShipmentType =
|
||||
model.shipmentTypes.isNotEmpty ? model.shipmentTypes.first : null;
|
||||
_currentConsignee = model.shipmentConsingees.isNotEmpty
|
||||
? model.shipmentConsingees.first
|
||||
: null;
|
||||
_currentLoadingPort =
|
||||
model.shipmentPorts.isNotEmpty ? model.shipmentPorts.first : null;
|
||||
_currentDestination =
|
||||
model.shipmentPorts.isNotEmpty ? model.shipmentPorts.first : null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -357,10 +362,14 @@ class _FcsShipmentEditorState extends State<FcsShipmentEditor> {
|
||||
return _shipmentNumberController.text != "" ||
|
||||
_cutoffDateController.text != "" ||
|
||||
_etaDateController.text != "" ||
|
||||
_currentConsignee != shipmentModel.shipmentConsingees.first ||
|
||||
_currentShipmentType != shipmentModel.shipmentTypes.first ||
|
||||
_currentLoadingPort != shipmentModel.shipmentPorts.first ||
|
||||
_currentDestination != shipmentModel.shipmentPorts.first;
|
||||
(shipmentModel.shipmentConsingees.isNotEmpty &&
|
||||
_currentConsignee != shipmentModel.shipmentConsingees.first) ||
|
||||
(shipmentModel.shipmentTypes.isNotEmpty &&
|
||||
_currentShipmentType != shipmentModel.shipmentTypes.first) ||
|
||||
(shipmentModel.shipmentPorts.isNotEmpty &&
|
||||
_currentLoadingPort != shipmentModel.shipmentPorts.first) ||
|
||||
(shipmentModel.shipmentPorts.isNotEmpty &&
|
||||
_currentDestination != shipmentModel.shipmentPorts.first);
|
||||
} else {
|
||||
FcsShipment fcsShipment = _getPayload();
|
||||
return widget.shipment!.isChangedForEdit(fcsShipment);
|
||||
|
||||
Reference in New Issue
Block a user