Home > OS >  Why the Video is not fullscreen in VideoPlayer in flutter?
Why the Video is not fullscreen in VideoPlayer in flutter?

Time:11-15

I copied and pasted the example of the enter image description here

CodePudding user response:

I used the stack for this and it worked perfectly for me. Based on this video:

enter image description here

is you are thinking about Top and bottom spaces here, is empty because of it is beyond video aspectRatio.

CodePudding user response:

The VideoPlayer(_controller) widget has a parent AspectRatio widget and it is currently rendering the VideoPlayer with the aspectRatio: _controller.value.aspectRatio, value.

  • Related