I want to take a ScreenShot of video playing inside a video player. But i am not able to adjust my VideoPlayer Inside RepaintBoundary.
RepaintBoundary(
key: screen,
child: Stack(
children: <Widget>[
Container(
child: videoPlayerController.value.initialized ? AspectRatio(
aspectRatio: videoPlayerController.value.aspectRatio,
child: VideoPlayer(videoPlayerController),
) : Container(color: Colors.red,),
),
],
),
),