Skip to content

Commit 4598889

Browse files
committed
🚨 Fix lints
1 parent 28a14f3 commit 4598889

File tree

6 files changed

+10
-368
lines changed

6 files changed

+10
-368
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.pub-cache/
3030
.pub/
3131
build/
32+
pubspec.lock
3233

3334
# Android related
3435
**/android/**/gradle-wrapper.jar

example/lib/main.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@ import 'package:interactive_chart/interactive_chart.dart';
44
import 'mock_data.dart';
55

66
void main() {
7-
runApp(MyApp());
7+
runApp(const MyApp());
88
}
99

1010
class MyApp extends StatefulWidget {
11+
const MyApp({Key? key}) : super(key: key);
12+
1113
@override
12-
_MyAppState createState() => _MyAppState();
14+
State<MyApp> createState() => _MyAppState();
1315
}
1416

1517
class _MyAppState extends State<MyApp> {
16-
List<CandleData> _data = MockDataTesla.candles;
18+
final List<CandleData> _data = MockDataTesla.candles;
1719
bool _darkMode = true;
1820
bool _showAverage = false;
1921

@@ -26,7 +28,7 @@ class _MyAppState extends State<MyApp> {
2628
),
2729
home: Scaffold(
2830
appBar: AppBar(
29-
title: Text("Interactive Chart Demo"),
31+
title: const Text("Interactive Chart Demo"),
3032
actions: [
3133
IconButton(
3234
icon: Icon(_darkMode ? Icons.dark_mode : Icons.light_mode),

example/pubspec.lock

Lines changed: 0 additions & 188 deletions
This file was deleted.

example/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ dependencies:
3232
path: ../
3333

3434
dev_dependencies:
35+
flutter_lints:
3536
flutter_test:
3637
sdk: flutter
3738

0 commit comments

Comments
 (0)