Skip to content

Commit 5ba8601

Browse files
committed
Fix exception on empty video poster
1 parent b5741ea commit 5ba8601

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)