general fixes, login behaves slightly better

This commit is contained in:
Felix 2019-08-12 15:17:50 +01:00
parent 7d30a8fc94
commit cb75f1ff87
1 changed files with 7 additions and 2 deletions

View File

@ -91,8 +91,13 @@ class FindOrganisations {
ignoring: _searchEnabled,
child: RaisedButton(
onPressed: () {
_submitSearch(searchBarText.text);
setState(() => {});
if (_searchEnabled) {
var result = _submitSearch(
searchBarText.text);
result.then((_) {
setState(() {});
});
}
},
child: Icon(Icons.search, color: Colors.white),