Skip to content

Commit 5998c79

Browse files
committed
Upgrade Flutter Lint v2.0.1
1 parent b8bc89e commit 5998c79

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

lib/components/blog.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@ class Tag extends StatelessWidget {
5353
Widget build(BuildContext context) {
5454
return RawMaterialButton(
5555
onPressed: () {},
56-
child: Text(
57-
tag,
58-
style: GoogleFonts.openSans(color: Colors.white, fontSize: 14),
59-
),
6056
fillColor: const Color(0xFF242424),
6157
padding: const EdgeInsets.symmetric(horizontal: 16),
6258
elevation: 0,
6359
hoverElevation: 0,
6460
hoverColor: const Color(0xFFC7C7C7),
6561
highlightElevation: 0,
6662
focusElevation: 0,
63+
child: Text(
64+
tag,
65+
style: GoogleFonts.openSans(color: Colors.white, fontSize: 14),
66+
),
6767
);
6868
}
6969
}
@@ -363,39 +363,39 @@ class MenuBar extends StatelessWidget {
363363
TextButton(
364364
onPressed: () => Navigator.popUntil(context,
365365
ModalRoute.withName(Navigator.defaultRouteName)),
366+
style: menuButtonStyle,
366367
child: const Text(
367368
"HOME",
368369
),
369-
style: menuButtonStyle,
370370
),
371371
TextButton(
372372
onPressed: () {},
373+
style: menuButtonStyle,
373374
child: const Text(
374375
"PORTFOLIO",
375376
),
376-
style: menuButtonStyle,
377377
),
378378
TextButton(
379379
onPressed: () =>
380380
Navigator.pushNamed(context, Routes.style),
381+
style: menuButtonStyle,
381382
child: const Text(
382383
"STYLE",
383384
),
384-
style: menuButtonStyle,
385385
),
386386
TextButton(
387387
onPressed: () {},
388+
style: menuButtonStyle,
388389
child: const Text(
389390
"ABOUT",
390391
),
391-
style: menuButtonStyle,
392392
),
393393
TextButton(
394394
onPressed: () {},
395+
style: menuButtonStyle,
395396
child: const Text(
396397
"CONTACT",
397398
),
398-
style: menuButtonStyle,
399399
),
400400
],
401401
),

lib/ui/ui_image.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ class ImageFixedWidth extends StatefulWidget {
1717
: super(key: key);
1818

1919
@override
20-
_ImageFixedWidthState createState() => _ImageFixedWidthState();
20+
ImageFixedWidthState createState() => ImageFixedWidthState();
2121
}
2222

23-
class _ImageFixedWidthState extends State<ImageFixedWidth> {
23+
class ImageFixedWidthState extends State<ImageFixedWidth> {
2424
bool imagesLoaded = false;
2525
bool preloadedImages = false;
2626

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dev_dependencies:
2020
flutter_test:
2121
sdk: flutter
2222
flutter_launcher_icons: ^0.9.2
23-
flutter_lints: ^1.0.4
23+
flutter_lints: ^2.0.1
2424

2525
flutter_icons:
2626
android: true

0 commit comments

Comments
 (0)