fix: clear search text on exit
This commit is contained in:
parent
adf38b9262
commit
42142514a1
1 changed files with 1 additions and 0 deletions
|
@ -206,6 +206,7 @@ class _HomePageState extends State<HomePage> {
|
|||
_showSearchBox = !_showSearchBox;
|
||||
if (!_showSearchBox) {
|
||||
_textController.clear();
|
||||
_searchText = "";
|
||||
} else {
|
||||
_searchText = _textController.text;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue