Skip to content

Commit

Permalink
fix analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
guidezpl committed Jul 2, 2024
1 parent 3b0663d commit 489800e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/dynamic_color/example/lib/accent_color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)';

Expand Down
4 changes: 2 additions & 2 deletions packages/dynamic_color/example/lib/complete_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -99,7 +99,7 @@ class CustomColors extends ThemeExtension<CustomColors> {
}

class Home extends StatefulWidget {
const Home({Key? key}) : super(key: key);
const Home({super.key});

@override
HomeState createState() => HomeState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -135,7 +135,7 @@ class _CorePaletteVisualizationState extends State<CorePaletteVisualization> {
}

class _RenderCorePalette extends StatelessWidget {
const _RenderCorePalette(this.corePalette, {Key? key}) : super(key: key);
const _RenderCorePalette(this.corePalette);

final CorePalette corePalette;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
5 changes: 2 additions & 3 deletions packages/dynamic_color/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 489800e

Please sign in to comment.