mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
Fixed indicator initial position
This commit is contained in:
parent
92793e013d
commit
07d777da9b
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ class _MeteringMeasureButtonState extends State<MeteringMeasureButton> {
|
|||
),
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue