diff options
author | davidpkj <davidpenkow1@gmail.com> | 2023-03-05 13:05:25 +0100 |
---|---|---|
committer | davidpkj <davidpenkow1@gmail.com> | 2023-03-05 13:05:25 +0100 |
commit | 14e4496de4138c317791030215803e7d57ec85bc (patch) | |
tree | 0d165667f1026325a7688c0f40bae4be6d7115f2 /lib/widgets/recipe_search_delegate.dart | |
parent | 45e4c5426a9090407dc1d210361c22ca83d8aa65 (diff) |
Refactored according to flutter lint
Diffstat (limited to 'lib/widgets/recipe_search_delegate.dart')
-rw-r--r-- | lib/widgets/recipe_search_delegate.dart | 12 |
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, ), ); |