Skip to content

Commit

Permalink
add low battery indicator resolves #36
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Mar 4, 2024
1 parent 6bcae4a commit 3cc58b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/Frontend/pages/Shell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ Widget getBattery(double level) {
return const Icon(Icons.battery_unknown);
}
if (level < 12.5) {
return const Icon(Icons.battery_0_bar);
return Flash(infinite: true, child: const Icon(Icons.battery_0_bar));
} else if (level < 25) {
return const Icon(Icons.battery_1_bar);
return Flash(
infinite: true,
child: const Icon(Icons.battery_1_bar),
);
} else if (level < 37.5) {
return const Icon(Icons.battery_2_bar);
} else if (level < 50) {
Expand Down

0 comments on commit 3cc58b1

Please sign in to comment.