splitup the player

This commit is contained in:
Alex
2024-08-09 17:30:30 -05:00
committed by mertalev
parent a8994ffb22
commit a346a37743
6 changed files with 240 additions and 80 deletions
+10 -14
View File
@@ -103,7 +103,7 @@ class VideoViewerPage extends HookConsumerWidget {
// Done in a microtask to avoid setting the state while the is building
if (!isMotionVideo) {
Future.microtask(() {
ref.read(showControlsProvider.notifier).show = true;
ref.read(showControlsProvider.notifier).show = false;
});
}
@@ -148,20 +148,16 @@ class VideoViewerPage extends HookConsumerWidget {
),
if (controller != null)
SizedBox(
height: 16 / 9 * size.width,
height: size.height,
width: size.width,
child: AspectRatio(
aspectRatio: 16 / 9,
child: VideoPlayerViewer(
controller: controller,
isMotionVideo: isMotionVideo,
placeholder: placeholder,
hideControlsTimer: hideControlsTimer,
showControls: showControls,
showDownloadingIndicator: showDownloadingIndicator,
loopVideo: loopVideo,
asset: asset,
),
child: VideoPlayerViewer(
controller: controller,
isMotionVideo: isMotionVideo,
placeholder: placeholder,
hideControlsTimer: hideControlsTimer,
showControls: showControls,
showDownloadingIndicator: showDownloadingIndicator,
loopVideo: loopVideo,
),
),
],