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

app_widget 封面
套件詳情v0.4.1

app_widget

Flutter 插件,用於在 Flutter 應用內管理應用小工具/主畫面小工具。

Android
近 30 天下載
893
喜歡數
83
Pub 分數
160

安裝套件

flutter pub add app_widget

套件介紹

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

app_widget 套件是一個 Flutter 插件,旨在讓開發者能夠直接在 Flutter 應用中管理應用小工具和主畫面小工具。它提供功能以在 Android 裝置上更新、建立或移除小工具,從而實現與主畫面的動態互動。此套件與 Flutter 生態系統無縫整合,無需原生程式碼即可簡化小工具管理。對於需要在主畫面上顯示即時更新的應用(如日曆、天氣應用或任務追蹤器)特別有用。

適用情境

  • 從應用內更新主螢幕小部件
  • 建立動態應用小工具
  • 同步小部件資料與應用狀態
  • 啟用使用者觸發的小工具更新
  • 將小部件管理整合到應用設定中

主要特色

  • 僅支援 Android
  • 用於小部件更新的簡單 API
  • 與 Flutter 生命週期的整合
  • 支援自訂小工具設定
  • 無需原生 Java/Kotlin 程式碼

適合對象

  • 開發互動式 Android 應用的開發者
  • 需要即時更新主畫面的應用程式
  • 希望避免原生平台代碼的團隊
  • 專注於透過小工具提升使用者參與度的專案
  • Flutter 應用針對 Android 主螢幕整合

使用建議

  • 僅限 Android 平台
  • 需要 Android 特定權限
  • 可能不適用於所有裝置製造商
  • 小部件行為在不同 Android 版本中可能會有所不同
  • 需要在多個安卓設備上進行測試

原始 README

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

Flutter App Widget

App Widget / Home Screen widget plugin for flutter app

Usage

Please see app_widget subdirectory for the usage documentation.

Plaform Support

Android iOS
✔️

Project Structure

This project follow the standard for flutter plugin development where each pieces are independent of each other. Other platform interface can be easily added by inherit the base platform interface and expose the require api to the main app_wiget plugin.

Contributing

  1. Fork
  2. Checkout to feature branch
  3. Add feature and unit test
  4. Make sure all unit test pass
  5. Add platform integration test and run integration test
  6. Create a PR

Android Integration Test

  • Make sure to run on the latest and minSdk supported

in app_widget/example/integration_test/app_widget_test.dart

cd app_widget/example
# this will require a connected device for android
flutter test integration_test/app_widget_test.dart

所屬分類

依賴

依賴清單 3 項

  • app_widget_android^0.4.1
  • app_widget_platform_interface^0.4.0
  • plugin_platform_interface^2.1.7

原始碼儲存庫

使用此套件的專案

暫無相關資料。