File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
flutter_cache_manager/example Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ const url = 'https://blurha.sh/assets/images/img1.jpg';
1818
1919/// Example [Widget] showing the functionalities of flutter_cache_manager
2020class CacheManagerPage extends StatefulWidget {
21+ const CacheManagerPage ({Key key}) : super (key: key);
22+
2123 static ExamplePage createPage () {
22- return ExamplePage (Icons .save_alt, (context) => CacheManagerPage ());
24+ return ExamplePage (Icons .save_alt, (context) => const CacheManagerPage ());
2325 }
2426
2527 @override
@@ -64,8 +66,10 @@ class _CacheManagerPageState extends State<CacheManagerPage> {
6466
6567 void _removeFile () {
6668 DefaultCacheManager ().removeFile (url).then ((value) {
69+ //ignore: avoid_print
6770 print ('File removed' );
6871 }).onError ((error, stackTrace) {
72+ //ignore: avoid_print
6973 print (error);
7074 });
7175 setState (() {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class ProgressIndicator extends StatelessWidget {
1414 child: Row (
1515 mainAxisAlignment: MainAxisAlignment .center,
1616 children: < Widget > [
17- Container (
17+ SizedBox (
1818 width: 50.0 ,
1919 height: 50.0 ,
2020 child: CircularProgressIndicator (
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ dependencies:
2222dev_dependencies :
2323 flutter_test :
2424 sdk : flutter
25+ flutter_lints : ^1.0.4
2526
2627
2728# The following section is specific to Flutter.
You can’t perform that action at this time.
0 commit comments