update package and carton selection

This commit is contained in:
tzw
2024-03-04 17:09:47 +06:30
parent c66734d386
commit 1c4a9c2112
11 changed files with 236 additions and 237 deletions

View File

@@ -41,7 +41,7 @@ class _CartonListState extends State<CartonList> {
_shipments.insert(0, model.defaultShipment);
if (_shipments.length > shipmentCountForCartonFilter) {
_shipments.insert(_shipments.length,
FcsShipment(shipmentNumber: "See All", id: see_all));
FcsShipment(shipmentNumber: "See More", id: see_more));
}
_selectedShipment = model.shipment ?? model.defaultShipment;
@@ -72,7 +72,7 @@ class _CartonListState extends State<CartonList> {
child: ActionChip(
shape: StadiumBorder(
side: BorderSide(
color: g.id == see_all
color: g.id == see_more
? Colors.transparent
: _selectedShipment?.id == g.id
? primaryColor
@@ -83,7 +83,7 @@ class _CartonListState extends State<CartonList> {
},
label: Text(g.shipmentNumber ?? "",
style: TextStyle(
color: g.id == see_all
color: g.id == see_more
? primaryColor
: _selectedShipment?.id == g.id
? primaryColor
@@ -343,7 +343,7 @@ class _CartonListState extends State<CartonList> {
}
_filterShipment(FcsShipment shipment) async {
if (shipment.id == see_all) {
if (shipment.id == see_more) {
_showFilter();
return;
}