general fixes, login behaves slightly better
This commit is contained in:
parent
7d30a8fc94
commit
cb75f1ff87
1 changed files with 7 additions and 2 deletions
|
@ -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),
|
||||
|
|
Reference in a new issue