Does this work for you with the video_player
plugin?
SizedBox.expand(
child: FittedBox(
fit: BoxFit.cover,
child: ListenableBuilder(
listenable: _videoController,
builder: (context, _) => SizedBox(
width: _videoController.value.size?.width ?? 0,
height: _videoController.value.size?.height ?? 0,
child: VideoPlayer(_videoController),
),
),
),
),