diff --git a/lib/ui/video_widget.dart b/lib/ui/video_widget.dart index f484530e53b64049941e4896cd5e55a47e5f244f..344116a897f6db8a07d3091c311bad12c4461deb 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, ]); }