update image resolution and search bar cursor color

This commit is contained in:
tzw
2025-02-10 11:23:38 +06:30
parent fb6a9f691a
commit 9fdc20a61b
13 changed files with 246 additions and 203 deletions

View File

@@ -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);