A Flutter plugin for retrieving device wallpapers on Android, supporting both static and live wallpapers.
The plugin provides an easy-to-use API to access the current wallpaper and convert it into Uint8List PNG bytes.
- โ Get Wallpaper Data (PNG format)
- โ Static Wallpaper Support
- โ Live Wallpaper Support (thumbnail for API 27+)
- โ Android Only
- โ Simple, Minimal API
- Flutter SDK: ^3.3.0
- Dart SDK: ^3.9.2
- Android SDK: API 21+
dependencies:
device_wallpaper_flutter: ^1.0.1flutter pub getimport 'package:device_wallpaper_flutter/device_wallpaper_flutter.dart';final Uint8List? wallpaper = await DeviceWallpaperFlutter.getWallpaper();(Chinese example above is identical; keep consistency)
- Returns
Future<Uint8List?> - Platforms: Android only
- Behavior:
- Static wallpaper โ full bitmap
- Live wallpaper โ thumbnail (API 27+)
- No wallpaper โ
null
- Fork โ Branch โ Commit โ Push โ PR
- Run
flutter analyzebefore submitting - Use clear English commit messages