Skip to content

Commit 3c243c5

Browse files
committed
Fixed new lint rules
1 parent accfbb1 commit 3c243c5

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

flutter_cache_manager/example/lib/main.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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
2020
class 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(() {

flutter_cache_manager/example/lib/plugin_example/progress_indicator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(

flutter_cache_manager/example/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dependencies:
2222
dev_dependencies:
2323
flutter_test:
2424
sdk: flutter
25+
flutter_lints: ^1.0.4
2526

2627

2728
# The following section is specific to Flutter.

0 commit comments

Comments
 (0)