FLUTTER ECOSYSTEM

canonical/upower.dart

提供一個客戶端,用於連接到 [UPower](https://upower.freedesktop.org/) - 在 Linux 上執行電源管理的服務。

upower.dart 專案封面
Stars
18
Forks
8
最近推送(UTC)
2025年8月25日
專案狀態
未封存
Canonical GitHub avatar
GITHUB Organization

Canonical ↗

語言Dart

此儲存庫發佈的套件

使用的依賴

依賴清單 4 項
  • dbus^0.7.0
  • lints開發依賴^2.0.0
  • test開發依賴^1.16.8
  • test_cov開發依賴^1.0.1

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

Pub Package codecov

Provides a client to connect to UPower - the service that does power management on Linux.

import 'package:upower/upower.dart';

var client = UPowerClient();
await client.connect();
print('Running UPower ${client.daemonVersion}');
print('System state: ${client.displayDevice.state}');
print('Devices:');
for (var device in client.devices) {
  print('  ${device.type} ${device.percentage}%');
}
await client.close();

Contributing to upower.dart

We welcome contributions! See the contribution guide for more details.