0

to know % of battery used by application.

What I need is the information that's available on an Android device under "Settings -> Battery stats"

Joel
  • 180
  • 1
  • 11

1 Answers1

0

There is no good way of doing this in Flutter, let alone Android. See these answer for an explanation on why this is so difficult.

As mentioned in the other answer, you can use the battery_info package to get general info about the battery as a whole but it will not give you information specific to your app.

Keep an eye on this unfinished Flutter documentation page for more info.

Code on the Rocks
  • 11,488
  • 3
  • 53
  • 61
  • Canot we use package `device_info` or `BatteryInfo` just to show the battery percentage of an application. – gretal Jan 26 '23 at 06:29