Hides controls when video starts and fixes placeholder for memory card

Remove prints
This commit is contained in:
Marty Fuhry
2024-03-04 12:09:53 -05:00
parent 36d892289e
commit 0f5c430826
3 changed files with 8 additions and 5 deletions

View File

@@ -96,14 +96,12 @@ class _ChewieControllerHookState
@override
void initHook() async {
print('CHEWIE CONTROLLER > creating chewie $hashCode');
super.initHook();
_initialize().whenComplete(() => setState(() {}));
}
@override
void dispose() {
print('CHEWIE CONTROLLER > disposing chewie $hashCode');
videoPlayerController?.pause();
videoPlayerController?.dispose();
chewieController?.dispose();

View File

@@ -110,6 +110,9 @@ class VideoViewerPage extends HookConsumerWidget {
return null;
}
// Hide the controls
ref.read(showControlsProvider.notifier).show = false;
final video = controller.videoPlayerController.value;
// Hold initial volume

View File

@@ -72,9 +72,11 @@ class MemoryCard extends StatelessWidget {
key: ValueKey(asset),
asset: asset,
showDownloadingIndicator: false,
placeholder: ImmichImage(
asset,
fit: fit,
placeholder: SizedBox.expand(
child: ImmichImage(
asset,
fit: fit,
),
),
hideControlsTimer: const Duration(seconds: 2),
onVideoEnded: onVideoEnded,