From 5c5b469dd1f4406737c546d794348a1de3b8192c Mon Sep 17 00:00:00 2001 From: Pierre-Louis Date: Tue, 2 Jul 2024 13:38:58 +0200 Subject: [PATCH] fix analysis --- packages/dynamic_color/example/lib/accent_color.dart | 2 +- packages/dynamic_color/example/lib/complete_example.dart | 4 ++-- .../example/lib/core_palette_visualization.dart | 4 ++-- .../example/lib/dynamic_color_builder_example.dart | 2 +- .../dynamic_color/example/lib/get_core_palette_example.dart | 2 +- .../dynamic_color/example/lib/harmonization_example.dart | 2 +- packages/dynamic_color/example/lib/main.dart | 5 ++--- 7 files changed, 10 insertions(+), 11 deletions(-) diff --git a/packages/dynamic_color/example/lib/accent_color.dart b/packages/dynamic_color/example/lib/accent_color.dart index a0853460..e4aa16a5 100644 --- a/packages/dynamic_color/example/lib/accent_color.dart +++ b/packages/dynamic_color/example/lib/accent_color.dart @@ -3,7 +3,7 @@ import 'package:dynamic_color_example/common.dart'; import 'package:flutter/material.dart'; class AccentColorExample extends StatelessWidget { - const AccentColorExample({Key? key}) : super(key: key); + const AccentColorExample({super.key}); static const title = 'Accent color (desktop)'; diff --git a/packages/dynamic_color/example/lib/complete_example.dart b/packages/dynamic_color/example/lib/complete_example.dart index 60dcf964..3f25639f 100644 --- a/packages/dynamic_color/example/lib/complete_example.dart +++ b/packages/dynamic_color/example/lib/complete_example.dart @@ -12,7 +12,7 @@ CustomColors lightCustomColors = const CustomColors(danger: Color(0xFFE53935)); CustomColors darkCustomColors = const CustomColors(danger: Color(0xFFEF9A9A)); class CompleteExample extends StatelessWidget { - const CompleteExample({Key? key}) : super(key: key); + const CompleteExample({super.key}); static const title = 'Complete example'; @@ -99,7 +99,7 @@ class CustomColors extends ThemeExtension { } class Home extends StatefulWidget { - const Home({Key? key}) : super(key: key); + const Home({super.key}); @override HomeState createState() => HomeState(); diff --git a/packages/dynamic_color/example/lib/core_palette_visualization.dart b/packages/dynamic_color/example/lib/core_palette_visualization.dart index 59b0e9d9..a0163f44 100644 --- a/packages/dynamic_color/example/lib/core_palette_visualization.dart +++ b/packages/dynamic_color/example/lib/core_palette_visualization.dart @@ -81,7 +81,7 @@ final sampleCorePalette = CorePalette.fromList([ ]); class CorePaletteVisualization extends StatefulWidget { - const CorePaletteVisualization({Key? key}) : super(key: key); + const CorePaletteVisualization({super.key}); static const title = 'CorePalette visualization'; @@ -135,7 +135,7 @@ class _CorePaletteVisualizationState extends State { } class _RenderCorePalette extends StatelessWidget { - const _RenderCorePalette(this.corePalette, {Key? key}) : super(key: key); + const _RenderCorePalette(this.corePalette); final CorePalette corePalette; diff --git a/packages/dynamic_color/example/lib/dynamic_color_builder_example.dart b/packages/dynamic_color/example/lib/dynamic_color_builder_example.dart index dfc4bc66..54f8f6f6 100644 --- a/packages/dynamic_color/example/lib/dynamic_color_builder_example.dart +++ b/packages/dynamic_color/example/lib/dynamic_color_builder_example.dart @@ -3,7 +3,7 @@ import 'package:dynamic_color_example/common.dart'; import 'package:flutter/material.dart'; class AdvancedExample1 extends StatelessWidget { - const AdvancedExample1({Key? key}) : super(key: key); + const AdvancedExample1({super.key}); static const title = 'DynamicColorBuilder'; diff --git a/packages/dynamic_color/example/lib/get_core_palette_example.dart b/packages/dynamic_color/example/lib/get_core_palette_example.dart index ddeb2aee..2b7aa80d 100644 --- a/packages/dynamic_color/example/lib/get_core_palette_example.dart +++ b/packages/dynamic_color/example/lib/get_core_palette_example.dart @@ -5,7 +5,7 @@ import 'package:material_color_utilities/material_color_utilities.dart'; import 'common.dart'; class AdvancedExample2 extends StatelessWidget { - const AdvancedExample2({Key? key}) : super(key: key); + const AdvancedExample2({super.key}); static const title = 'DynamicColorPlugin.getCorePalette()'; diff --git a/packages/dynamic_color/example/lib/harmonization_example.dart b/packages/dynamic_color/example/lib/harmonization_example.dart index 7c31972d..183409c8 100644 --- a/packages/dynamic_color/example/lib/harmonization_example.dart +++ b/packages/dynamic_color/example/lib/harmonization_example.dart @@ -3,7 +3,7 @@ import 'package:dynamic_color_example/common.dart'; import 'package:flutter/material.dart'; class HarmonizationExample extends StatelessWidget { - const HarmonizationExample({Key? key}) : super(key: key); + const HarmonizationExample({super.key}); static const title = 'Color harmonization'; diff --git a/packages/dynamic_color/example/lib/main.dart b/packages/dynamic_color/example/lib/main.dart index 18cc774b..6605665e 100644 --- a/packages/dynamic_color/example/lib/main.dart +++ b/packages/dynamic_color/example/lib/main.dart @@ -13,7 +13,7 @@ void main() { } class ExampleApp extends StatelessWidget { - const ExampleApp({Key? key}) : super(key: key); + const ExampleApp({super.key}); @override Widget build(BuildContext context) { @@ -71,10 +71,9 @@ class ExampleApp extends StatelessWidget { class _ExampleAppButton extends StatelessWidget { const _ExampleAppButton({ - Key? key, required this.title, required this.widget, - }) : super(key: key); + }); final String title; final Widget widget;