Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[battery] Updated README.md #2944

Merged
merged 1 commit into from
Aug 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/battery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.4

* Updated README.md.

## 1.0.3

* Update package:e2e to use package:integration_test
Expand Down
4 changes: 2 additions & 2 deletions packages/battery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ To use this plugin, add `battery` as a [dependency in your pubspec.yaml file](ht
import 'package:battery/battery.dart';

// Instantiate it
var battery = Battery();
var _battery = Battery();

// Access current battery level
print(await battery.batteryLevel);
print(await _battery.batteryLevel);

// Be informed when the state (full, charging, discharging) changes
_battery.onBatteryStateChanged.listen((BatteryState state) {
Expand Down
2 changes: 1 addition & 1 deletion packages/battery/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: battery
description: Flutter plugin for accessing information about the battery state
(full, charging, discharging) on Android and iOS.
homepage: https://github.com/flutter/plugins/tree/master/packages/battery
version: 1.0.3
version: 1.0.4

flutter:
plugin:
Expand Down