From 07d777da9b1d62ce72c5d000242312332f32de65 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Sun, 19 Feb 2023 18:11:01 +0300 Subject: [PATCH] Fixed indicator initial position --- .../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,