How can we get battery level in Doubles in Flutter?

Viewed 155

Is there any way to get battery level in doubles in flutter?? the battery package returns a int, but I want decimal accuracy in my app.

1 Answers

Unfortunately that's not possible. On android the BatteryManager only has API for getting integer and on iOS platform you're getting battery level as double between 0 and 1 but with 2 decimal points accuracy which is not enough for your case.

Related