FLUTTER ECOSYSTEM

canonical/upower.dart

[UPower](https://upower.freedesktop.org/)에 연결하는 클라이언트를 제공합니다. 이 서비스는 리눅스에서 전원 관리를 수행합니다.

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.