File tree Expand file tree Collapse file tree 6 files changed +10
-368
lines changed
Expand file tree Collapse file tree 6 files changed +10
-368
lines changed Original file line number Diff line number Diff line change 2929.pub-cache /
3030.pub /
3131build /
32+ pubspec.lock
3233
3334# Android related
3435** /android /** /gradle-wrapper.jar
Original file line number Diff line number Diff line change @@ -4,16 +4,18 @@ import 'package:interactive_chart/interactive_chart.dart';
44import 'mock_data.dart' ;
55
66void main () {
7- runApp (MyApp ());
7+ runApp (const MyApp ());
88}
99
1010class 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
1517class _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),
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ dependencies:
3232 path : ../
3333
3434dev_dependencies :
35+ flutter_lints :
3536 flutter_test :
3637 sdk : flutter
3738
You can’t perform that action at this time.
0 commit comments