to know % of battery used by application.
What I need is the information that's available on an Android device under "Settings -> Battery stats"
CodePudding user response:
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.
CodePudding user response:
I think You Can user this package that helps you to get all info about battery in both Android and IOS battery_info i hope this helps you