add cartion filter and search
This commit is contained in:
@@ -47,11 +47,11 @@ class _CartonSelectionWidgetState extends State<CartonSelectionWidget> {
|
||||
}
|
||||
|
||||
_init() {
|
||||
var searchModel = context.read<CartonSelectionModel>();
|
||||
searchModel.addDefaultCartons(widget.shipment.id!);
|
||||
var model = context.read<CartonSelectionModel>();
|
||||
model.addDefaultCartons(widget.shipment.id!);
|
||||
|
||||
_controller.text = searchModel.query;
|
||||
_query = searchModel.query;
|
||||
_controller.text = model.query;
|
||||
_query = model.query;
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
@@ -89,7 +89,6 @@ class _CartonSelectionWidgetState extends State<CartonSelectionWidget> {
|
||||
|
||||
final continueBtn = ContinueButton(
|
||||
onTap: () {
|
||||
|
||||
if (selectedCartonList.isEmpty || searchResults.isEmpty) {
|
||||
showMsgDialog(context, 'Error', "Please select the cartons");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user