add latest price autocomplete
This commit is contained in:
parent
5f5487803b
commit
370a5329a9
2 changed files with 17 additions and 1 deletions
|
@ -98,8 +98,11 @@ class _SupplyPageState extends State<SupplyPage> {
|
|||
.contains(textEditingValue.text.toLowerCase());
|
||||
});
|
||||
},
|
||||
onSelected: (String selection) {
|
||||
onSelected: (String selection) async {
|
||||
var price =
|
||||
await API().getLatestPrice(widget.item.id, variant);
|
||||
setState(() {
|
||||
_price = price.value.toStringAsFixed(2);
|
||||
_selectedOrigin = selection;
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue