🐛 Fix bugs on mobile

This commit is contained in:
2025-12-20 15:15:23 +08:00
parent 3955e7b859
commit 9ea635f5c5
2 changed files with 24 additions and 22 deletions

View File

@@ -404,18 +404,20 @@ class Shell extends HookConsumerWidget {
);
}
return Shortcuts(
shortcuts: <LogicalKeySet, Intent>{
LogicalKeySet(LogicalKeyboardKey.escape): const PopIntent(),
},
child: Actions(
actions: <Type, Action<Intent>>{PopIntent: PopAction(ref)},
child: Stack(
fit: StackFit.expand,
children: [
Positioned.fill(child: child),
Positioned(left: 0, right: 0, bottom: 0, child: MiniPlayer()),
],
return Material(
child: Shortcuts(
shortcuts: <LogicalKeySet, Intent>{
LogicalKeySet(LogicalKeyboardKey.escape): const PopIntent(),
},
child: Actions(
actions: <Type, Action<Intent>>{PopIntent: PopAction(ref)},
child: Stack(
fit: StackFit.expand,
children: [
Positioned.fill(child: child),
Positioned(left: 0, right: 0, bottom: 0, child: MiniPlayer()),
],
),
),
),
);