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 {
88
99 const ProgressIndicator ({
1010 Key ? key,
11- required this .progress,
11+ this .progress,
1212 }) : super (key: key);
1313
1414 @override
@@ -21,7 +21,9 @@ class ProgressIndicator extends StatelessWidget {
2121 width: 50.0 ,
2222 height: 50.0 ,
2323 child: CircularProgressIndicator (
24- value: progress.progress,
24+ value: progress != null && progress? .progress != null
25+ ? progress? .progress
26+ : null ,
2527 ),
2628 ),
2729 const SizedBox (width: 20 ),
Original file line number Diff line number Diff line change 11import 'dart:async' ;
2+ import 'dart:typed_data' ;
23
34import 'package:file/file.dart' ;
45import 'package:flutter/foundation.dart' show visibleForTesting;
You can’t perform that action at this time.
0 commit comments