Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Seek bar minor improvement

ashilkn551c151f1e32
diff --git a/mobile/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart b/mobile/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart
index de21ea4308..6471925d79 100644
--- a/mobile/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart
+++ b/mobile/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart
@@ -134,9 +134,9 @@ class _SeekBarState extends State<SeekBar> with SingleTickerProviderStateMixin {
//To immediately set the position to 0 when the ends when playing in loop
if (_prevPositionFraction == 1.0 && target == 0.0) {
- unawaited(
- _animationController.animateTo(0, duration: Duration.zero),
- );
+ setState(() {
+ _animationController.value = 0;
+ });
}
//There is a slight delay (around 350 ms) for the event being listened to