diff --git a/lib/ui/video_widget.dart b/lib/ui/video_widget.dart index f484530e5..344116a89 100644 --- a/lib/ui/video_widget.dart +++ b/lib/ui/video_widget.dart @@ -40,7 +40,9 @@ class _VideoWidgetState extends State { @override void dispose() { _videoPlayerController.dispose(); - _chewieController.dispose(); + if (_chewieController != null) { + _chewieController.dispose(); + } super.dispose(); } @@ -66,6 +68,10 @@ class _VideoWidgetState extends State { Widget _getLoadingWidget() { return Stack(children: [ _getThumbnail(), + Container( + color: Colors.black12, + constraints: BoxConstraints.expand(), + ), loadWidget, ]); }