Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
guidezpl committed Jul 2, 2024
1 parent 4a03176 commit 1c70d0a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions packages/dynamic_color/example/lib/complete_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ class Home extends StatefulWidget {
const Home({Key? key}) : super(key: key);

@override
_HomeState createState() => _HomeState();
HomeState createState() => HomeState();
}

class _HomeState extends State<Home> {
class HomeState extends State<Home> {
final _textEditingController = TextEditingController();

@override
Expand All @@ -116,9 +116,9 @@ class _HomeState extends State<Home> {

@override
Widget build(BuildContext context) {
String _dynamicMsg =
String dynamicMsg =
_isDemoUsingDynamicColors ? ' (dynamic)' : ' (not dynamic)';
String _harmonizedMsg = _isDemoUsingDynamicColors
String harmonizedMsg = _isDemoUsingDynamicColors
? ' (harmonized with ColorScheme.primary)'
: ' (not harmonized)';

Expand All @@ -130,16 +130,16 @@ class _HomeState extends State<Home> {
children: [
ColoredSquare(
Theme.of(context).colorScheme.primary,
'ColorScheme.primary$_dynamicMsg',
'ColorScheme.primary$dynamicMsg',
),
ColoredSquare(
Theme.of(context).extension<CustomColors>()!.danger,
'CustomColors.danger$_harmonizedMsg',
'CustomColors.danger$harmonizedMsg',
),
TextField(
controller: _textEditingController,
decoration: InputDecoration(
errorText: 'This color is ColorScheme.error$_dynamicMsg',
errorText: 'This color is ColorScheme.error$dynamicMsg',
),
),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/google_fonts/example/lib/example_simple.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

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

@override
ExampleSimpleState createState() => ExampleSimpleState();
Expand Down
2 changes: 1 addition & 1 deletion packages/google_fonts/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:google_fonts_tester/example_simple.dart';
void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
Widget build(BuildContext context) {
Expand Down

0 comments on commit 1c70d0a

Please sign in to comment.