Added Live Wallpaper settings into Preferences menu for Android. Which lets the user set a live wallpaper based on people.

This commit is contained in:
naeem 2025-09-27 18:23:07 +01:00
parent 7d8cd05bc2
commit 7a903d39c0
27 changed files with 1918 additions and 3 deletions

View file

@ -0,0 +1,21 @@
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:immich_mobile/providers/live_wallpaper_preferences.provider.dart';
import 'package:immich_mobile/services/live_wallpaper_platform.service.dart';
import 'package:immich_mobile/platform/wallpaper_api.g.dart';
final liveWallpaperStatusProvider = FutureProvider<WallpaperStatusMessage>((ref) async {
final preferences = ref.watch(liveWallpaperPreferencesProvider);
final platformService = ref.watch(liveWallpaperPlatformServiceProvider);
await platformService.syncPreferences(preferences);
return platformService.getStatus();
});
final openWallpaperPickerProvider = Provider<Future<bool> Function()>((ref) {
final platformService = ref.watch(liveWallpaperPlatformServiceProvider);
return () => platformService.openSystemPicker();
});
final requestWallpaperRefreshProvider = Provider<Future<void> Function()>((ref) {
final platformService = ref.watch(liveWallpaperPlatformServiceProvider);
return () => platformService.requestRefresh();
});