Skip to content

Commit e550c99

Browse files
authored
Merge pull request #940 from tneotia/bugfix/empty-video-poster
Fix exception on empty video poster
2 parents b5741ea + 5ba8601 commit e550c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/replaced_element.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class VideoContentElement extends ReplacedElement {
181181
videoPlayerController: VideoPlayerController.network(
182182
src.first ?? "",
183183
),
184-
placeholder: poster != null
184+
placeholder: poster != null && poster!.isNotEmpty
185185
? Image.network(poster!)
186186
: Container(color: Colors.black),
187187
autoPlay: autoplay,

0 commit comments

Comments
 (0)