Skip to content

Commit

Permalink
Merge pull request #940 from tneotia/bugfix/empty-video-poster
Browse files Browse the repository at this point in the history
Fix exception on empty video poster
  • Loading branch information
erickok authored Dec 9, 2021
2 parents b5741ea + 5ba8601 commit e550c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/replaced_element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class VideoContentElement extends ReplacedElement {
videoPlayerController: VideoPlayerController.network(
src.first ?? "",
),
placeholder: poster != null
placeholder: poster != null && poster!.isNotEmpty
? Image.network(poster!)
: Container(color: Colors.black),
autoPlay: autoplay,
Expand Down

0 comments on commit e550c99

Please sign in to comment.