info: fixed metadata search bar style
This commit is contained in:
parent
870aba32ff
commit
40e9439252
3 changed files with 1 additions and 10 deletions
|
@ -42,10 +42,6 @@ class CollectionSearchDelegate {
|
||||||
|
|
||||||
CollectionSearchDelegate({@required this.source, this.parentCollection});
|
CollectionSearchDelegate({@required this.source, this.parentCollection});
|
||||||
|
|
||||||
ThemeData appBarTheme(BuildContext context) {
|
|
||||||
return Theme.of(context);
|
|
||||||
}
|
|
||||||
|
|
||||||
Widget buildLeading(BuildContext context) {
|
Widget buildLeading(BuildContext context) {
|
||||||
return Navigator.canPop(context)
|
return Navigator.canPop(context)
|
||||||
? IconButton(
|
? IconButton(
|
||||||
|
|
|
@ -88,7 +88,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final theme = widget.delegate.appBarTheme(context);
|
final theme = Theme.of(context);
|
||||||
Widget body;
|
Widget body;
|
||||||
switch (widget.delegate.currentBody) {
|
switch (widget.delegate.currentBody) {
|
||||||
case SearchBody.suggestions:
|
case SearchBody.suggestions:
|
||||||
|
|
|
@ -24,11 +24,6 @@ class InfoSearchDelegate extends SearchDelegate {
|
||||||
searchFieldLabel: searchFieldLabel,
|
searchFieldLabel: searchFieldLabel,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
|
||||||
ThemeData appBarTheme(BuildContext context) {
|
|
||||||
return Theme.of(context);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget buildLeading(BuildContext context) {
|
Widget buildLeading(BuildContext context) {
|
||||||
return IconButton(
|
return IconButton(
|
||||||
|
|
Loading…
Reference in a new issue