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

套件詳情v7.1.2

battery_plus

用於存取電池狀態(充滿、充電、放電)資訊的 Flutter 外掛程式。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
59.3萬
喜歡數
565
Pub 分數
150

安裝套件

flutter pub add battery_plus

套件介紹

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

battery_plus 套件是一個 Flutter 外掛程式,可在多個平台(包括 Android、iOS、Web、macOS、Windows 和 Linux)上提供對即時電池狀態資訊的存取。它允許開發者取得電池電量、充電狀態以及裝置是否插入電源等詳細資訊。此外掛程式專為跨平台一致性設計,簡化了需要電池監控功能之應用程式的整合。該套件由 Flutter Community 維護,並支援 null 安全與現代 Dart 實踐。

適用情境

  • 即時監控設備電池電量
  • 檢測裝置何時正在充電或放電
  • 在應用中建構省電功能
  • 在UI元件中顯示電池狀態
  • 建立低電量警示

主要特色

  • 跨平台電池狀態存取
  • 即時電池電量更新
  • 支援所有主要的桌面與行動平台
  • 簡單、直覺的 API
  • 由 Flutter Community 維護

適合對象

  • 需要電池健康監控的應用
  • 實用工具與系統工具
  • 電池優化功能
  • 跨平台應用程式
  • 尋求可靠設備狀態資料的開發者

使用建議

  • 在某些作業系統上需要適當的平台權限
  • Web 支援的準確性可能有限
  • 電池狀態更新取決於設備硬體
  • 不適用於高精度電池分析
  • 僅限基本電池狀態資訊

原始 README

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

Plus plugins

build

all_plugins GitHub Workflow Status Follow on Twitter


PlusPlugins is a set of Flutter plugins that is developed based on plugins, which previously existed as a part of Flutter plugins, with extra functionalities, support for more platforms and better maintenance.

Feedback and Pull Requests are most welcome!

Plugins

Table of contents:


battery_plus

battery_plus pub points

Flutter plugin for accessing information about the battery state (full, charging, discharging) on Android and iOS.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

connectivity_plus

connectivity_plus pub points

Flutter plugin for discovering the state of the network (WiFi & mobile/cellular) connectivity on Android and iOS.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

device_info_plus

device_info_plus pub points

Flutter plugin providing detailed information about the device (make, model, etc.), and Android or iOS version the app is running on.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

network_info_plus

network_info_plus pub points

Flutter plugin for discovering network info.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ❌ ✅ ✅

package_info_plus

package_info_plus pub points

Flutter plugin for querying information about the application package, such as CFBundleVersion on iOS or versionCode on Android.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

sensors_plus

sensors_plus pub points

Flutter plugin for accessing accelerometer, gyroscope, magnetometer and barometer sensors.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ❌ ✅ ❌ ❌

share_plus

share_plus pub points

Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

android_alarm_manager_plus

android_alarm_manager_plus pub points

Flutter plugin for accessing the Android AlarmManager service, and running Dart code in the background when alarms fire.

[readme] [code]

Platform Support
Android
✅

android_intent_plus

android_intent_plus pub points

Flutter plugin for launching Android Intents. Not supported on iOS.

[readme] [code]

Platform Support
Android
✅

Issues

Please file PlusPlugins specific issues, bugs, or feature requests in our issue tracker.

Plugin issues that are not specific to PlusPlugins can be filed in the Flutter issue tracker.

Contributing

If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide and open a pull request.

Status

This repository is maintained by FlutterCommunity authors. Issues here are answered by maintainers and other community members on GitHub on a best-effort basis.

所屬分類

依賴

依賴清單 4 項

  • battery_plus_platform_interface^2.0.1
  • meta^1.8.0
  • upower^0.7.0
  • web^1.0.0

原始碼儲存庫

使用此套件的專案

所在榜單