Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit d100317

Browse files
committed
[video_player_web] Make Map take 100% width/height of the PlatformView.
1 parent 22b56e5 commit d100317

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/video_player/video_player_web/lib/video_player_web.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ class _VideoPlayer {
181181
..src = uri
182182
..autoplay = false
183183
..controls = false
184-
..style.border = 'none';
184+
..style.border = 'none'
185+
..style.height = '100%'
186+
..style.width = '100%';
185187

186188
// Allows Safari iOS to play the video inline
187189
videoElement.setAttribute('playsinline', 'true');

0 commit comments

Comments
 (0)