minor fix
This commit is contained in:
parent
ead7adb36c
commit
f8525db84e
1 changed files with 6 additions and 2 deletions
|
@ -683,7 +683,7 @@ class _EntryViewerStackState extends State<EntryViewerStack> with EntryViewContr
|
||||||
final baseCollection = collection;
|
final baseCollection = collection;
|
||||||
if (baseCollection == null) return;
|
if (baseCollection == null) return;
|
||||||
|
|
||||||
unawaited(_onLeave());
|
await _onLeave();
|
||||||
final uri = entryNotifier.value?.uri;
|
final uri = entryNotifier.value?.uri;
|
||||||
unawaited(Navigator.maybeOf(context)?.pushAndRemoveUntil(
|
unawaited(Navigator.maybeOf(context)?.pushAndRemoveUntil(
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
|
@ -852,7 +852,7 @@ class _EntryViewerStackState extends State<EntryViewerStack> with EntryViewContr
|
||||||
void _popVisual() {
|
void _popVisual() {
|
||||||
if (Navigator.canPop(context)) {
|
if (Navigator.canPop(context)) {
|
||||||
Future<void> pop() async {
|
Future<void> pop() async {
|
||||||
unawaited(_onLeave());
|
await _onLeave();
|
||||||
Navigator.maybeOf(context)?.pop();
|
Navigator.maybeOf(context)?.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -916,6 +916,10 @@ class _EntryViewerStackState extends State<EntryViewerStack> with EntryViewContr
|
||||||
if (!settings.useTvLayout) {
|
if (!settings.useTvLayout) {
|
||||||
await windowService.requestOrientation();
|
await windowService.requestOrientation();
|
||||||
}
|
}
|
||||||
|
// delay to prevent white/black flash on page transition
|
||||||
|
// from a viewer with a transparent background and no system UI
|
||||||
|
// to a regular page with system UI
|
||||||
|
await Future.delayed(const Duration(milliseconds: 50));
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<bool> _enablePictureInPicture(AvesVideoController? playingController) async {
|
Future<bool> _enablePictureInPicture(AvesVideoController? playingController) async {
|
||||||
|
|
Loading…
Reference in a new issue