info: fixed metadata search bar style

This commit is contained in:
Thibault Deckers 2021-04-11 19:37:44 +09:00
parent 870aba32ff
commit 40e9439252
3 changed files with 1 additions and 10 deletions

View file

@ -42,10 +42,6 @@ class CollectionSearchDelegate {
CollectionSearchDelegate({@required this.source, this.parentCollection});
ThemeData appBarTheme(BuildContext context) {
return Theme.of(context);
}
Widget buildLeading(BuildContext context) {
return Navigator.canPop(context)
? IconButton(

View file

@ -88,7 +88,7 @@ class _SearchPageState extends State<SearchPage> {
@override
Widget build(BuildContext context) {
final theme = widget.delegate.appBarTheme(context);
final theme = Theme.of(context);
Widget body;
switch (widget.delegate.currentBody) {
case SearchBody.suggestions:

View file

@ -24,11 +24,6 @@ class InfoSearchDelegate extends SearchDelegate {
searchFieldLabel: searchFieldLabel,
);
@override
ThemeData appBarTheme(BuildContext context) {
return Theme.of(context);
}
@override
Widget buildLeading(BuildContext context) {
return IconButton(