Skip to content

Commit 01bac00

Browse files
committed
Fix linter warnings
1 parent f2a3593 commit 01bac00

File tree

5 files changed

+13
-18
lines changed

5 files changed

+13
-18
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 10.8.0
22
* Upgrade to Font Awesome 6.6.0
3+
* Fix linter warnings
34

45
## 10.7.0
56
* Upgrade to Font Awesome 6.5.1

example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void main() {
88
}
99

1010
class FontAwesomeGalleryApp extends StatelessWidget {
11-
const FontAwesomeGalleryApp({Key? key}) : super(key: key);
11+
const FontAwesomeGalleryApp({super.key});
1212

1313
@override
1414
Widget build(BuildContext context) {
@@ -26,7 +26,7 @@ class FontAwesomeGalleryApp extends StatelessWidget {
2626
}
2727

2828
class FontAwesomeGalleryHome extends StatefulWidget {
29-
const FontAwesomeGalleryHome({Key? key}) : super(key: key);
29+
const FontAwesomeGalleryHome({super.key});
3030

3131
@override
3232
State<StatefulWidget> createState() => FontAwesomeGalleryHomeState();

lib/font_awesome_flutter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library font_awesome_flutter;
1+
library;
22

33
import 'package:flutter/widgets.dart';
44
import 'package:font_awesome_flutter/src/icon_data.dart';

lib/src/fa_icon.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ class FaIcon extends StatelessWidget {
2222
/// The [size] and [color] default to the value given by the current [IconTheme].
2323
const FaIcon(
2424
this.icon, {
25-
Key? key,
25+
super.key,
2626
this.size,
2727
this.color,
2828
this.semanticLabel,
2929
this.textDirection,
3030
this.shadows,
31-
}) : super(key: key);
31+
});
3232

3333
/// The icon to display. Available icons are listed in [FontAwesomeIcons].
3434
///

lib/src/icon_data.dart

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
library font_awesome_flutter;
1+
library;
22

33
import 'package:flutter/widgets.dart';
44

55
/// [IconData] for a font awesome brand icon from a code point
66
///
77
/// Code points can be obtained from fontawesome.com
88
class IconDataBrands extends IconData {
9-
const IconDataBrands(int codePoint)
9+
const IconDataBrands(super.codePoint)
1010
: super(
11-
codePoint,
1211
fontFamily: 'FontAwesomeBrands',
1312
fontPackage: 'font_awesome_flutter',
1413
);
@@ -18,9 +17,8 @@ class IconDataBrands extends IconData {
1817
///
1918
/// Code points can be obtained from fontawesome.com
2019
class IconDataSolid extends IconData {
21-
const IconDataSolid(int codePoint)
20+
const IconDataSolid(super.codePoint)
2221
: super(
23-
codePoint,
2422
fontFamily: 'FontAwesomeSolid',
2523
fontPackage: 'font_awesome_flutter',
2624
);
@@ -30,9 +28,8 @@ class IconDataSolid extends IconData {
3028
///
3129
/// Code points can be obtained from fontawesome.com
3230
class IconDataRegular extends IconData {
33-
const IconDataRegular(int codePoint)
31+
const IconDataRegular(super.codePoint)
3432
: super(
35-
codePoint,
3633
fontFamily: 'FontAwesomeRegular',
3734
fontPackage: 'font_awesome_flutter',
3835
);
@@ -43,9 +40,8 @@ class IconDataRegular extends IconData {
4340
///
4441
/// Code points can be obtained from fontawesome.com
4542
class IconDataLight extends IconData {
46-
const IconDataLight(int codePoint)
43+
const IconDataLight(super.codePoint)
4744
: super(
48-
codePoint,
4945
fontFamily: 'FontAwesomeLight',
5046
fontPackage: 'font_awesome_flutter',
5147
);
@@ -63,9 +59,8 @@ class IconDataDuotone extends IconData {
6359
/// but has to be an [IconData] object.
6460
final IconData? secondary;
6561

66-
const IconDataDuotone(int codePoint, {this.secondary})
62+
const IconDataDuotone(super.codePoint, {this.secondary})
6763
: super(
68-
codePoint,
6964
fontFamily: 'FontAwesomeDuotone',
7065
fontPackage: 'font_awesome_flutter',
7166
);
@@ -76,9 +71,8 @@ class IconDataDuotone extends IconData {
7671
///
7772
/// Code points can be obtained from fontawesome.com
7873
class IconDataThin extends IconData {
79-
const IconDataThin(int codePoint)
74+
const IconDataThin(super.codePoint)
8075
: super(
81-
codePoint,
8276
fontFamily: 'FontAwesomeThin',
8377
fontPackage: 'font_awesome_flutter',
8478
);

0 commit comments

Comments
 (0)