mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
ML-5 Measure button needs loading state (#41)
* added
* Version bump
* Fixed indicator initial position
* Revert "Version bump"
This reverts commit 92793e013d
.
This commit is contained in:
parent
1c4e302103
commit
e6338157bf
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ class _MeteringMeasureButtonState extends State<MeteringMeasureButton> {
|
||||||
),
|
),
|
||||||
Positioned.fill(
|
Positioned.fill(
|
||||||
child: CircularProgressIndicator(
|
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,
|
color: Theme.of(context).colorScheme.onSurface,
|
||||||
strokeWidth: Dimens.grid4,
|
strokeWidth: Dimens.grid4,
|
||||||
value: widget.isMetering ? null : 1,
|
value: widget.isMetering ? null : 1,
|
||||||
|
|
Loading…
Reference in a new issue