Skip to content

Commit

Permalink
add contrast to search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
qcasey committed Jan 24, 2022
1 parent 39e0ede commit 4b3c229
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/widgets/search_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ class _SearchAppBarState extends State<SearchAppBar> {
if (isSearchOpen == true) {
searchIcon = Icons.close;
appBarTitle = new TextFormField(
style: Theme.of(context)
.textTheme
.headline6
?.copyWith(color: Theme.of(context).primaryIconTheme.color),
cursorColor: Theme.of(context).primaryIconTheme.color,
onChanged: (t) async {
if (autoCompleteListener == null) return;
int thisSearch = ++currentSearch;
Expand All @@ -75,7 +80,10 @@ class _SearchAppBarState extends State<SearchAppBar> {
toggleSearch!(false);
},
decoration: new InputDecoration(
prefixIcon: new Icon(Icons.search),
hintStyle: Theme.of(context)
.textTheme
.headline6
?.copyWith(color: Theme.of(context).primaryIconTheme.color),
hintText: 'Search for document...'.i18n),
);
focusNode.requestFocus();
Expand Down

0 comments on commit 4b3c229

Please sign in to comment.