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 f37791d56e..dafd812db4 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 @@ -112,6 +112,9 @@ class _SeekBarState extends State with SingleTickerProviderStateMixin { //Video starts playing after a slight delay. This delay is to ensure that //the seek bar animation starts after the video starts playing. Future.delayed(const Duration(milliseconds: 700), () { + if (!mounted) { + return; + } if (widget.duration != null) { unawaited( _animationController.animateTo(