diff --git a/lib/Backend/app_shortcuts.dart b/lib/Backend/app_shortcuts.dart index fb4113c8..8346ba29 100644 --- a/lib/Backend/app_shortcuts.dart +++ b/lib/Backend/app_shortcuts.dart @@ -16,6 +16,7 @@ const QuickActions quickActions = QuickActions(); @Riverpod(keepAlive: true) Future appShortcuts(AppShortcutsRef ref) async { + await Future.delayed(const Duration(seconds: 5)); quickActions.initialize((shortcutType) { BaseAction? action = ref.read(getActionFromUUIDProvider(shortcutType)); if (action != null) { diff --git a/lib/Backend/firmware_update.dart b/lib/Backend/firmware_update.dart index 52c54a0a..8df13dff 100644 --- a/lib/Backend/firmware_update.dart +++ b/lib/Backend/firmware_update.dart @@ -5,20 +5,13 @@ part 'firmware_update.g.dart'; @freezed class FWInfo with _$FWInfo { - FWInfo._(); - - factory FWInfo({ + const factory FWInfo({ required String version, required String md5sum, required String url, - @Default("") String changelog, - @Default("") String glash, + @Default("") final String changelog, + @Default("") final String glash, }) = _FWInfo; factory FWInfo.fromJson(Map json) => _$FWInfoFromJson(json); - - @override - String toString() { - return 'FWInfo{version: $version}'; - } } diff --git a/lib/Backend/wear_bridge.dart b/lib/Backend/wear_bridge.dart index 423c72da..66f2c62d 100644 --- a/lib/Backend/wear_bridge.dart +++ b/lib/Backend/wear_bridge.dart @@ -26,6 +26,7 @@ StreamSubscription? capabilityChangedStreamSubscription; @Riverpod(keepAlive: true) Future initWear(InitWearRef ref) async { + await Future.delayed(const Duration(seconds: 5)); try { if (!Platform.isAndroid || !await _flutterWearOsConnectivity.isSupported()) { return;