File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
example/lib/plugin_example Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class ProgressIndicator extends StatelessWidget {
8
8
9
9
const ProgressIndicator ({
10
10
Key ? key,
11
- required this .progress,
11
+ this .progress,
12
12
}) : super (key: key);
13
13
14
14
@override
@@ -21,7 +21,9 @@ class ProgressIndicator extends StatelessWidget {
21
21
width: 50.0 ,
22
22
height: 50.0 ,
23
23
child: CircularProgressIndicator (
24
- value: progress.progress,
24
+ value: progress != null && progress? .progress != null
25
+ ? progress? .progress
26
+ : null ,
25
27
),
26
28
),
27
29
const SizedBox (width: 20 ),
Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
+ import 'dart:typed_data' ;
2
3
3
4
import 'package:file/file.dart' ;
4
5
import 'package:flutter/foundation.dart' show visibleForTesting;
You can’t perform that action at this time.
0 commit comments