搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.4

flutter_wallpaper_manager

Flutter 壁紙管理外掛程式,協助您在 Android 裝置上設定壁紙。支援主螢幕、鎖定螢幕以及同時設定主螢幕與鎖定螢幕的壁紙模式。

Android
近 30 天下載
260
喜歡數
33
Pub 分數
140

安裝套件

flutter pub add flutter_wallpaper_manager

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 插件,可於 Android 裝置上設定壁紙,支援主畫面、鎖定畫面或同時設定兩者。它提供簡單的 API 來與 Android 的壁紙管理員互動,讓使用者能以程式設計方式套用影像。專為 Android 設計,可無縫整合至需要動態更換壁紙的應用程式中。此外,該插件輕巧且依賴原生 Android 功能,確保穩定效能。

適用情境

  • 從應用內設定自訂壁紙
  • 將壁紙應用到主螢幕和鎖定螢幕
  • 啟用使用者驅動的壁紙自訂
  • 根據事件自動更新壁紙
  • 建立壁紙畫廊或主題應用程式

主要特色

  • 支援主畫面壁紙
  • 支援鎖螢幕壁紙
  • 可同時設定兩個螢幕
  • 簡單直覺的 API
  • 僅限 Android 的平台支援

適合對象

  • 開發壁紙應用的開發者
  • 具有動態主題功能的應用程式
  • 面向使用者的自訂工具
  • 面向Android的移動應用程式

使用建議

  • 僅限 Android 平台
  • 需要適當的權限
  • 可能無法在所有 Android 版本上運作
  • 取決於設備特定的壁紙管理員行為
  • 無 iOS 支援

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_wallpaper_manager

A flutter plugin to set wallpaper on your android device. It support Home Screen, Lock Screen and Both Screen mode

How to use flutter wallpaper manager?

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.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。