update package and carton selection
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user