Skip to content

Commit 695e20a

Browse files
authored
Revert "Fix video aspect ratio"
1 parent 54be788 commit 695e20a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/src/replaced_element.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ class VideoContentElement extends ReplacedElement {
249249

250250
@override
251251
Widget toWidget(RenderContext context) {
252-
final double _width = width ?? (height ?? 150) * 2;
253-
final double _height = height ?? (width ?? 300) / 2;
254252
return Container(
253+
width: width ?? (height ?? 150) * 2,
254+
height: height ?? (width ?? 300) / 2,
255255
child: Chewie(
256256
controller: ChewieController(
257257
videoPlayerController: VideoPlayerController.network(
@@ -264,7 +264,6 @@ class VideoContentElement extends ReplacedElement {
264264
looping: loop,
265265
showControls: showControls,
266266
autoInitialize: true,
267-
aspectRatio: _width / _height,
268267
),
269268
),
270269
);

0 commit comments

Comments
 (0)