From e6338157bffec87e36d251367ce8385be8d24605 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Sun, 19 Feb 2023 18:15:36 +0300 Subject: [PATCH] ML-5 Measure button needs loading state (#41) * added * Version bump * Fixed indicator initial position * Revert "Version bump" This reverts commit 92793e013d0e3b3a0b8ece359aa6fa6e7f32b1c8. --- .../components/measure_button/widget_button_measure.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/screens/metering/components/bottom_controls/components/measure_button/widget_button_measure.dart b/lib/screens/metering/components/bottom_controls/components/measure_button/widget_button_measure.dart index a584a6f..a29997a 100644 --- a/lib/screens/metering/components/bottom_controls/components/measure_button/widget_button_measure.dart +++ b/lib/screens/metering/components/bottom_controls/components/measure_button/widget_button_measure.dart @@ -70,6 +70,8 @@ class _MeteringMeasureButtonState extends State { ), Positioned.fill( child: CircularProgressIndicator( + /// This key is needed to make indicator start from the same point every time + key: ValueKey(widget.isMetering), color: Theme.of(context).colorScheme.onSurface, strokeWidth: Dimens.grid4, value: widget.isMetering ? null : 1,