Fix search bug
This commit is contained in:
parent
16614b4429
commit
cea5544c40
1 changed files with 2 additions and 1 deletions
|
@ -53,11 +53,12 @@ class _SearchFormState extends State<SearchForm> {
|
|||
),
|
||||
),
|
||||
onPressed: () {
|
||||
var searchQuery = searchController.text;
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) =>
|
||||
SearchPage(query: searchController.text)));
|
||||
SearchPage(query: searchQuery)));
|
||||
searchController.clear();
|
||||
},
|
||||
child: const Text('Search'),
|
||||
|
|
Loading…
Add table
Reference in a new issue