bg 1.0.3 copy "bg: ^1.0.3" to clipboard
bg: ^1.0.3 copied to clipboard

PlatformmacOS

Easy way to change wallpapers for your MacOS

bg - A plugin for changing your wallpaper #

pub package

Platform Support #

MacOS
✔️

Getting Started #

You can create your custom widget and call change wallpaper.

// import bg
import 'package:bg/bg.dart';

// on change
await Bg().changeWallpaper(
    url: [your-url],
    scale: style, // [WallpaperScale]
    color: color.hex, // defaults to #ffffff
);
copied to clipboard

You can also use showWallpaperOptions which shows a BottomSheetModal.

await Bg().showWallpaperOptions(
    url: imageUrl,
    // BuildContext from parent widget
    context: context,
);

copied to clipboard

Bottom Sheet Modal Example #

Custom Example #

Demo

Docs #

Notes #

  • This package only supports MACOS. There are known limitations in other platforms like IOS https://stackoverflow.com/a/6243685/2161256
  • We don't support tile scale, because not all the images play nicely with this setting, and MacOS itself doesn't always show the option

PRs are welcome.

2
likes
145
points
79
downloads
screenshot

Publisher

verified publisheritrydat.com

Weekly Downloads

2024.09.21 - 2025.04.05

Easy way to change wallpapers for your MacOS

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flex_color_picker, flutter, plugin_platform_interface

More

Packages that depend on bg