Skip to content

Commit 489800e

Browse files
committed
fix analysis
1 parent 3b0663d commit 489800e

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

packages/dynamic_color/example/lib/accent_color.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:dynamic_color_example/common.dart';
33
import 'package:flutter/material.dart';
44

55
class AccentColorExample extends StatelessWidget {
6-
const AccentColorExample({Key? key}) : super(key: key);
6+
const AccentColorExample({super.key});
77

88
static const title = 'Accent color (desktop)';
99

packages/dynamic_color/example/lib/complete_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CustomColors lightCustomColors = const CustomColors(danger: Color(0xFFE53935));
1212
CustomColors darkCustomColors = const CustomColors(danger: Color(0xFFEF9A9A));
1313

1414
class CompleteExample extends StatelessWidget {
15-
const CompleteExample({Key? key}) : super(key: key);
15+
const CompleteExample({super.key});
1616

1717
static const title = 'Complete example';
1818

@@ -99,7 +99,7 @@ class CustomColors extends ThemeExtension<CustomColors> {
9999
}
100100

101101
class Home extends StatefulWidget {
102-
const Home({Key? key}) : super(key: key);
102+
const Home({super.key});
103103

104104
@override
105105
HomeState createState() => HomeState();

packages/dynamic_color/example/lib/core_palette_visualization.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ final sampleCorePalette = CorePalette.fromList([
8181
]);
8282

8383
class CorePaletteVisualization extends StatefulWidget {
84-
const CorePaletteVisualization({Key? key}) : super(key: key);
84+
const CorePaletteVisualization({super.key});
8585

8686
static const title = 'CorePalette visualization';
8787

@@ -135,7 +135,7 @@ class _CorePaletteVisualizationState extends State<CorePaletteVisualization> {
135135
}
136136

137137
class _RenderCorePalette extends StatelessWidget {
138-
const _RenderCorePalette(this.corePalette, {Key? key}) : super(key: key);
138+
const _RenderCorePalette(this.corePalette);
139139

140140
final CorePalette corePalette;
141141

packages/dynamic_color/example/lib/dynamic_color_builder_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:dynamic_color_example/common.dart';
33
import 'package:flutter/material.dart';
44

55
class AdvancedExample1 extends StatelessWidget {
6-
const AdvancedExample1({Key? key}) : super(key: key);
6+
const AdvancedExample1({super.key});
77

88
static const title = 'DynamicColorBuilder';
99

packages/dynamic_color/example/lib/get_core_palette_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:material_color_utilities/material_color_utilities.dart';
55
import 'common.dart';
66

77
class AdvancedExample2 extends StatelessWidget {
8-
const AdvancedExample2({Key? key}) : super(key: key);
8+
const AdvancedExample2({super.key});
99

1010
static const title = 'DynamicColorPlugin.getCorePalette()';
1111

packages/dynamic_color/example/lib/harmonization_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:dynamic_color_example/common.dart';
33
import 'package:flutter/material.dart';
44

55
class HarmonizationExample extends StatelessWidget {
6-
const HarmonizationExample({Key? key}) : super(key: key);
6+
const HarmonizationExample({super.key});
77

88
static const title = 'Color harmonization';
99

packages/dynamic_color/example/lib/main.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void main() {
1313
}
1414

1515
class ExampleApp extends StatelessWidget {
16-
const ExampleApp({Key? key}) : super(key: key);
16+
const ExampleApp({super.key});
1717

1818
@override
1919
Widget build(BuildContext context) {
@@ -71,10 +71,9 @@ class ExampleApp extends StatelessWidget {
7171

7272
class _ExampleAppButton extends StatelessWidget {
7373
const _ExampleAppButton({
74-
Key? key,
7574
required this.title,
7675
required this.widget,
77-
}) : super(key: key);
76+
});
7877

7978
final String title;
8079
final Widget widget;

0 commit comments

Comments
 (0)