v0.0.4
flutter_wallpaper_manager
Flutter 壁纸管理插件,帮助您在 Android 设备上设置壁纸。支持主屏幕、锁屏以及同时设置主屏幕和锁屏的壁纸模式。
33喜欢 260近 30 天下载140Pub 分数
Android
prasadkirpekar/flutterwallpapermanager open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
A flutter plugin to set wallpaper on your android device. It support Home Screen, Lock Screen and Both Screen mode
Simply install latest version of flutter_wallpaper_manager and use the following code to set the wallpaper
int location = WallpaperManager.BOTH_SCREEN; //can be Home/Lock Screen
bool result = await WallpaperManager.setWallpaperFromFile(path, location); //provide image path
You can clear the wallpaper by using clear() of WallpaperManager class
bool result = await WallpaperManager.clear(); //returns true/false
More features are coming to this plugin. Meanwhile you can support the development by donating tiny amount. It will be really appreciated.
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗