desktop_wallpaper_set 0.0.1 desktop_wallpaper_set: ^0.0.1 copied to clipboard
Flutter plugin for setting desktop wallpaper. Supports macos.
desktop_wallpaper_set #
A new Flutter plugin for wallpaper set.
Usage #
To use this plugin, add desktop_wallpaper_set as a dependency in your pubspec.yaml file.
Example #
import 'package:desktop_wallpaper_set/desktop_wallpaper_set.dart';
void main() {
runApp(Scaffold(
body: Center(
child: ElevatedButton(
onPressed: onSetWallpaper,
child: Text('set wallpaper')
),
),
));
}
onSetWallpaper() async {
let imhPath = '/Users/zhupa/Desktop/flutter_wallpaper_set/loading@3x.png' // your local url
await _desktopWallpaperSetPlugin.setWallpaper(imgPath) ?? 'error';
}