desktop_wallpaper_set 0.0.1 copy "desktop_wallpaper_set: ^0.0.1" to clipboard
desktop_wallpaper_set: ^0.0.1 copied to clipboard

outdated

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';
}

8
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Flutter plugin for setting desktop wallpaper. Supports macos.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on desktop_wallpaper_set