|
|
|
@ -40,7 +40,7 @@ class VideoViewerPage extends HookWidget {
|
|
|
|
controlsSafeAreaMinimum: const EdgeInsets.only(
|
|
|
|
controlsSafeAreaMinimum: const EdgeInsets.only(
|
|
|
|
bottom: 100,
|
|
|
|
bottom: 100,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
placeholder: SizedBox.expand(child: placeholder),
|
|
|
|
placeholder: placeholder,
|
|
|
|
showControls: showControls && !isMotionVideo,
|
|
|
|
showControls: showControls && !isMotionVideo,
|
|
|
|
hideControlsTimer: hideControlsTimer,
|
|
|
|
hideControlsTimer: hideControlsTimer,
|
|
|
|
customControls: const VideoPlayerControls(),
|
|
|
|
customControls: const VideoPlayerControls(),
|
|
|
|
@ -58,9 +58,13 @@ class VideoViewerPage extends HookWidget {
|
|
|
|
if (controller == null) {
|
|
|
|
if (controller == null) {
|
|
|
|
return Stack(
|
|
|
|
return Stack(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
if (placeholder != null) SizedBox.expand(child: placeholder!),
|
|
|
|
if (placeholder != null) placeholder!,
|
|
|
|
const DelayedLoadingIndicator(
|
|
|
|
const Positioned.fill(
|
|
|
|
fadeInDuration: Duration(milliseconds: 500),
|
|
|
|
child: Center(
|
|
|
|
|
|
|
|
child: DelayedLoadingIndicator(
|
|
|
|
|
|
|
|
fadeInDuration: Duration(milliseconds: 500),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|