Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: handle zero display value in circular progress animation

AmanRajSinghMourya926715a4a838
diff --git a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_tune_bar.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_tune_bar.dart
index 1ebc163103..a7b5c69da4 100644
--- a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_tune_bar.dart
+++ b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_tune_bar.dart
@@ -315,7 +315,9 @@ class _CircularProgressWithValueState extends State<CircularProgressWithValue>
AnimatedBuilder(
animation: _progressAnimation,
builder: (context, child) {
- final animatedValue = _progressAnimation.value;
+ final animatedValue =
+ displayValue == 0 ? 0.0 : _progressAnimation.value;
+
final isClockwise =
_isClockwise(animatedValue, widget.min, widget.max);
final progressValue = _normalizeValueForProgress(