aboutsummaryrefslogtreecommitdiff
path: root/lib/widgets/recipe_search_delegate.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/recipe_search_delegate.dart')
-rw-r--r--lib/widgets/recipe_search_delegate.dart12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/widgets/recipe_search_delegate.dart b/lib/widgets/recipe_search_delegate.dart
index 1cb02e7..cd58b29 100644
--- a/lib/widgets/recipe_search_delegate.dart
+++ b/lib/widgets/recipe_search_delegate.dart
@@ -10,7 +10,7 @@ class RecipeSearch extends SearchDelegate {
List<Widget> buildActions(BuildContext context) {
return [
IconButton(
- icon: Icon(Icons.clear),
+ icon: const Icon(Icons.clear),
onPressed: () {
query = "";
},
@@ -21,7 +21,7 @@ class RecipeSearch extends SearchDelegate {
@override
Widget buildLeading(BuildContext context) {
return IconButton(
- icon: Icon(Icons.arrow_back, color: cIconColor),
+ icon: const Icon(Icons.arrow_back, color: cIconColor),
onPressed: () {
close(context, null);
},
@@ -51,7 +51,7 @@ class RecipeSearch extends SearchDelegate {
@override
ThemeData appBarTheme(BuildContext context) {
return Theme.of(context).copyWith(
- textTheme: TextTheme(
+ textTheme: const TextTheme(
headline6: cSearchTextStyle,
),
);
@@ -63,7 +63,7 @@ class FavoriteRecipeSearch extends SearchDelegate {
List<Widget> buildActions(BuildContext context) {
return [
IconButton(
- icon: Icon(Icons.clear),
+ icon: const Icon(Icons.clear),
onPressed: () {
query = "";
},
@@ -74,7 +74,7 @@ class FavoriteRecipeSearch extends SearchDelegate {
@override
Widget buildLeading(BuildContext context) {
return IconButton(
- icon: Icon(Icons.arrow_back, color: cIconColor),
+ icon: const Icon(Icons.arrow_back, color: cIconColor),
onPressed: () {
close(context, null);
},
@@ -104,7 +104,7 @@ class FavoriteRecipeSearch extends SearchDelegate {
@override
ThemeData appBarTheme(BuildContext context) {
return Theme.of(context).copyWith(
- textTheme: TextTheme(
+ textTheme: const TextTheme(
headline6: cSearchTextStyle,
),
);