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,
|
ignoring: _searchEnabled,
|
||||||
child: RaisedButton(
|
child: RaisedButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_submitSearch(searchBarText.text);
|
if (_searchEnabled) {
|
||||||
setState(() => {});
|
var result = _submitSearch(
|
||||||
|
searchBarText.text);
|
||||||
|
result.then((_) {
|
||||||
|
setState(() {});
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
child: Icon(Icons.search, color: Colors.white),
|
child: Icon(Icons.search, color: Colors.white),
|
||||||
|
|
Reference in a new issue