search_form - Fixed Text Color
This commit is contained in:
parent
bef323c92e
commit
9a9cc27029
1 changed files with 6 additions and 3 deletions
|
@ -23,6 +23,7 @@ class _SearchFormState extends State<SearchForm> {
|
|||
Widget build(BuildContext context) {
|
||||
return Form(
|
||||
child: TextFormField(
|
||||
style: TextStyle(color: Colors.white),
|
||||
controller: searchController,
|
||||
decoration: InputDecoration(
|
||||
filled: true,
|
||||
|
@ -52,9 +53,11 @@ class _SearchFormState extends State<SearchForm> {
|
|||
),
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.push(context, MaterialPageRoute(
|
||||
builder: (context) => SearchPage(query: searchController.text)
|
||||
));
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) =>
|
||||
SearchPage(query: searchController.text)));
|
||||
},
|
||||
child: const Text('Search'),
|
||||
),
|
||||
|
|
Loading…
Add table
Reference in a new issue