Tweak loading indicator to start with indeterminant spinner until progress has started.

This commit is contained in:
Shawn 2023-02-13 10:38:55 -07:00
parent 77b03a29a5
commit e30f5de874

View File

@ -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,
), ),
); );