mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -295,10 +295,15 @@ class MyApp extends StatelessWidget {
|
||||
Get.back();
|
||||
}
|
||||
|
||||
return Shortcuts(
|
||||
shortcuts: {
|
||||
LogicalKeySet(LogicalKeyboardKey.escape):
|
||||
VoidCallbackIntent(onBack),
|
||||
return Focus(
|
||||
canRequestFocus: false,
|
||||
onKeyEvent: (_, event) {
|
||||
if (event.logicalKey == LogicalKeyboardKey.escape &&
|
||||
event is KeyDownEvent) {
|
||||
onBack();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
return KeyEventResult.ignored;
|
||||
},
|
||||
child: MouseBackDetector(
|
||||
onTapDown: onBack,
|
||||
|
||||
@@ -805,6 +805,10 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
),
|
||||
onTap: () =>
|
||||
plPlayerController.triggerFullScreen(status: !isFullScreen),
|
||||
onSecondaryTap: () => plPlayerController.triggerFullScreen(
|
||||
status: !isFullScreen,
|
||||
inAppFullScreen: true,
|
||||
),
|
||||
),
|
||||
};
|
||||
|
||||
|
||||
@@ -107,6 +107,7 @@ abstract class Update {
|
||||
downloadBtn('zip', ext: 'zip'),
|
||||
downloadBtn('exe', ext: 'exe'),
|
||||
] else if (Platform.isLinux) ...[
|
||||
downloadBtn('rpm', ext: 'rpm'),
|
||||
downloadBtn('deb', ext: 'deb'),
|
||||
downloadBtn('targz', ext: 'tar.gz'),
|
||||
] else
|
||||
|
||||
Reference in New Issue
Block a user