mirror of
https://github.com/immich-app/immich.git
synced 2026-02-14 21:08:15 +03:00
Fixes show controls with microtask
This commit is contained in:
@@ -111,7 +111,10 @@ class VideoViewerPage extends HookConsumerWidget {
|
||||
}
|
||||
|
||||
// Hide the controls
|
||||
ref.read(showControlsProvider.notifier).show = false;
|
||||
// Done in a microtask to avoid setting the state while the widget is building
|
||||
Future.microtask(
|
||||
() => ref.read(showControlsProvider.notifier).show = false,
|
||||
);
|
||||
|
||||
final video = controller.videoPlayerController.value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user