🐛 Added some platform checks

This commit is contained in:
2026-01-14 22:50:06 +08:00
parent 9437339b0f
commit d0e4fde6c2
4 changed files with 35 additions and 28 deletions

View File

@@ -586,6 +586,7 @@ class _UnauthorizedCard extends HookConsumerWidget {
mainAxisSize: MainAxisSize.min,
children: [
const Gap(16),
const SizedBox(width: double.infinity),
Icon(
Symbols.dashboard_rounded,
size: 64,

View File

@@ -125,6 +125,8 @@ class WindowScaffold extends HookConsumerWidget {
);
useEffect(() {
if (kIsWeb) return null;
hotKeyManager.register(
popHotKey,
keyDownHandler: (_) {

View File

@@ -162,6 +162,7 @@ class AppWrapper extends HookConsumerWidget {
(now.day >= 22 && now.day <= 28);
useEffect(() {
Future(() {
final now = DateTime.now();
if (doesShowSnow) {
isShowSnow.value = true;
@@ -192,6 +193,7 @@ class AppWrapper extends HookConsumerWidget {
settingsNotifier.setAskedReview(true);
}
}
});
return null;
}, []);

View File

@@ -38,6 +38,8 @@ class ExtendedRefreshIndicator extends HookConsumerWidget {
);
useEffect(() {
if (kIsWeb) return null;
hotKeyManager.register(
refreshHotKey,
keyDownHandler: (_) {