-
-
Notifications
You must be signed in to change notification settings - Fork 966
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(battery_plus)!: Introduce connected_not_charging state on MacOS (#…
- Loading branch information
Showing
5 changed files
with
25 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...y_plus/battery_plus/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
packages/battery_plus/battery_plus_platform_interface/lib/src/enums.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
/// Indicates the current battery state. | ||
enum BatteryState { | ||
/// The battery is completely full of energy. | ||
/// The battery is fully charged. | ||
full, | ||
|
||
/// The battery is currently storing energy. | ||
/// The battery is currently charging. | ||
charging, | ||
|
||
/// Device is connected to external power source, but not charging the battery. | ||
/// Usually happens when device has charge limit enabled and this limit is reached. | ||
/// Available on MacOS and Android platforms only. | ||
connectedNotCharging, | ||
|
||
/// The battery is currently losing energy. | ||
discharging, | ||
|
||
/// The battery is not charging. | ||
notCharging, | ||
|
||
/// The state of the battery is unknown. | ||
unknown | ||
unknown; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters