fix: clear search text on exit

This commit is contained in:
Prateek Sunal 2024-03-18 18:15:30 +05:30
parent adf38b9262
commit 42142514a1

View file

@ -206,6 +206,7 @@ class _HomePageState extends State<HomePage> {
_showSearchBox = !_showSearchBox;
if (!_showSearchBox) {
_textController.clear();
_searchText = "";
} else {
_searchText = _textController.text;
}