forgot to stage all the changes...
This commit is contained in:
parent
cb75f1ff87
commit
3060a6d1f9
6 changed files with 65 additions and 53 deletions
|
@ -71,9 +71,9 @@ class FindOrganisations {
|
|||
} else {
|
||||
_searchEnabled = false;
|
||||
}
|
||||
setState(() => {});
|
||||
setState(() => {_searchEnabled});
|
||||
},
|
||||
onSubmitted: (value) {
|
||||
onSubmitted: (_) {
|
||||
if (_searchEnabled) {
|
||||
var result = _submitSearch(searchBarText.text);
|
||||
result.then((_) {
|
||||
|
@ -87,23 +87,20 @@ class FindOrganisations {
|
|||
Container(
|
||||
width: 80,
|
||||
padding: EdgeInsets.fromLTRB(20, 0, 0, 0),
|
||||
child: IgnorePointer(
|
||||
ignoring: _searchEnabled,
|
||||
child: RaisedButton(
|
||||
onPressed: () {
|
||||
if (_searchEnabled) {
|
||||
var result = _submitSearch(
|
||||
searchBarText.text);
|
||||
result.then((_) {
|
||||
setState(() {});
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
child: Icon(Icons.search, color: Colors.white),
|
||||
color: _searchEnabled ? Colors.blue : Colors.blue[200],
|
||||
// make inactive when search in progress as activity indicator
|
||||
),
|
||||
child: RaisedButton(
|
||||
onPressed: (() {
|
||||
if (_searchEnabled) {
|
||||
var result = _submitSearch(searchBarText.text);
|
||||
result.then((_) {
|
||||
setState(() {});
|
||||
});
|
||||
}
|
||||
}),
|
||||
|
||||
child: Icon(Icons.search, color: Colors.white),
|
||||
color: _searchEnabled ? Colors.blue : Colors.blue[200],
|
||||
// make inactive when search in progress as activity indicator
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
Reference in a new issue