Tweak loading indicator to start with indeterminant spinner until progress has started.
This commit is contained in:
parent
77b03a29a5
commit
e30f5de874
@ -7,14 +7,16 @@ class AppLoadingIndicator extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final progress = (value == null || value! < .05) ? null : value;
|
||||
|
||||
return SizedBox(
|
||||
width: 40,
|
||||
height: 40,
|
||||
child: CircularProgressIndicator(
|
||||
color: color ?? $styles.colors.accent1,
|
||||
value: value,
|
||||
strokeWidth: 1.0,
|
||||
),
|
||||
);
|
||||
width: 40,
|
||||
height: 40,
|
||||
child: CircularProgressIndicator(
|
||||
color: color ?? $styles.colors.accent1,
|
||||
value: progress,
|
||||
strokeWidth: 1.0,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user