Skip to content

Commit a7e23ab

Browse files
committed
Fix linting issues and add Sponsoring
1 parent cb160a4 commit a7e23ab

4 files changed

Lines changed: 25 additions & 4 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,14 @@ Use the getter `SystemTheme.isDarkMode` to check if the device is in dark mode.
7070
final darkMode = SystemTheme.darkMode;
7171
```
7272

73-
# Contribution
73+
## Sponsoring
74+
75+
<a href="https://www.patreon.com/bePatron?u=50324277" data-patreon-widget-type="become-patron-button">Become a Patron!</a><script async src="https://c6.patreon.com/becomePatronButton.bundle.js"></script>
76+
77+
## Contribution
7478

7579
Feel free to [open an issue](https://github.com/bdlukaa/system_theme/issues/new) if you find an error or [make pull requests](https://github.com/bdlukaa/system_theme/pulls).
7680

77-
## Acknowlegments
81+
### Acknowlegments
7882

7983
- [@alexmercerind](https://github.com/alexmercerind) for the Windows implementation

example/lib/main.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import 'package:system_theme/system_theme.dart';
44
void main() async {
55
WidgetsFlutterBinding.ensureInitialized();
66
await SystemTheme.accentColor.load();
7-
runApp(MaterialApp(home: MyApp()));
7+
runApp(const MaterialApp(home: MyApp()));
88
}
99

1010
class MyApp extends StatefulWidget {
11+
const MyApp({Key? key}) : super(key: key);
12+
1113
@override
1214
_MyAppState createState() => _MyAppState();
1315
}
@@ -16,7 +18,7 @@ class _MyAppState extends State<MyApp> {
1618
@override
1719
void initState() {
1820
super.initState();
19-
print(SystemTheme.accentColor.accent);
21+
debugPrint(SystemTheme.accentColor.accent.toString());
2022
}
2123

2224
@override

example/pubspec.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ packages:
5555
description: flutter
5656
source: sdk
5757
version: "0.0.0"
58+
flutter_lints:
59+
dependency: "direct dev"
60+
description:
61+
name: flutter_lints
62+
url: "https://pub.dartlang.org"
63+
source: hosted
64+
version: "1.0.4"
5865
flutter_test:
5966
dependency: "direct dev"
6067
description: flutter
@@ -72,6 +79,13 @@ packages:
7279
url: "https://pub.dartlang.org"
7380
source: hosted
7481
version: "0.6.3"
82+
lints:
83+
dependency: transitive
84+
description:
85+
name: lints
86+
url: "https://pub.dartlang.org"
87+
source: hosted
88+
version: "1.0.1"
7589
matcher:
7690
dependency: transitive
7791
description:

example/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
dev_dependencies:
1818
flutter_test:
1919
sdk: flutter
20+
flutter_lints: ^1.0.4
2021

2122
flutter:
2223
uses-material-design: true

0 commit comments

Comments
 (0)