[mob] Add mount check

This commit is contained in:
Neeraj Gupta
2024-10-15 15:13:14 +05:30
parent 9f1a3ad7d6
commit bee9694f34

View File

@@ -112,6 +112,9 @@ class _SeekBarState extends State<SeekBar> 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(