fix broken dialog
This commit is contained in:
parent
e44687fb6b
commit
cda3fc57e9
2 changed files with 8 additions and 5 deletions
|
@ -134,12 +134,17 @@ class FindOrganisations {
|
|||
}
|
||||
setState(() => {_searchEnabled});
|
||||
},
|
||||
onSubmitted: _searchEnabled ? (_) {
|
||||
onSubmitted: ((_) {
|
||||
if (_searchEnabled) {
|
||||
SystemChannels.textInput.invokeMethod('TextInput.hide');
|
||||
var result = _submitSearch(searchBarText.text);
|
||||
result.then((_) {
|
||||
setState(() {});
|
||||
setState(() {
|
||||
_orgsFetched = true;
|
||||
});
|
||||
} : null,
|
||||
});
|
||||
}
|
||||
}),
|
||||
),
|
||||
),
|
||||
|
||||
|
|
|
@ -241,8 +241,6 @@ class ReceiptPage2State extends State<ReceiptPage2> {
|
|||
height: 32.0,
|
||||
child: RaisedButton(
|
||||
onPressed: () {
|
||||
// var popupListView = new PopupListView();
|
||||
// var dialog = popupListView.dialog(context, optionsList, "Choose Organization");
|
||||
var organisations = new FindOrganisations();
|
||||
var orgDialog = organisations.dialog(context);
|
||||
orgDialog.then((organisation) {
|
||||
|
|
Reference in a new issue