From cb75f1ff8747df36e05fab2c1ea2697503a9b1f2 Mon Sep 17 00:00:00 2001 From: Felix Date: Mon, 12 Aug 2019 15:17:50 +0100 Subject: [PATCH] general fixes, login behaves slightly better --- lib/common/widgets/organisations_dialog.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/common/widgets/organisations_dialog.dart b/lib/common/widgets/organisations_dialog.dart index 94e4180..9666b96 100644 --- a/lib/common/widgets/organisations_dialog.dart +++ b/lib/common/widgets/organisations_dialog.dart @@ -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),