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