wallpaper_manager_flutter 0.0.1+1 copy "wallpaper_manager_flutter: ^0.0.1+1" to clipboard
wallpaper_manager_flutter: ^0.0.1+1 copied to clipboard

PlatformAndroid
outdated

A Plugin to set Wallpaper for Home Screen,Lock Screen and Both Screens on Android device from system file or cached file inside the app directory.

wallpaper_manager_flutter #

A Plugin to set Wallpaper of HomeScreen,LockScreen and Both Screen without lag even for large images.

Installation #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  wallpaper_manager_flutter: ^0.0.1

In your library add the following import:

  import 'package:wallpaper_manager_flutter/wallpaper_manager_flutter.dart';

Usage #

Set wallpaper from system file #

Use this inside an async Function,

imagefile = /o/users/image,
location = WallpaperManagerFlutter.HOME_SCREEN  //Choose screen type
var result = await WallpaperManagerFlutter().setwallpaperwithFile(imagefile, location);

Set Wallpaper from cache file #

You can use flutter_cache_manager package to access the cache image files,

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  flutter_cache_manager: ^3.1.2

In your library add the following import:

  import 'package:flutter_cache_manager/flutter_cache_manager.dart';

Now in pass the image url to the cache manager and await cachedimage and the pass the cached image.

var cachedimage = await DefaultCacheManager().getSingleFile(url);

location = WallpaperManagerFlutter.HOME_SCREEN  //Choose screen type

var result = await WallpaperManagerFlutter().setwallpaperwithFile(cachedimage, location);
42
likes
140
pub points
84%
popularity

Publisher

unverified uploader

A Plugin to set Wallpaper for Home Screen,Lock Screen and Both Screens on Android device from system file or cached file inside the app directory.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on wallpaper_manager_flutter