cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
532 stars 634 forks source link

NUTRITION data is crashing the app #994

Open navaidali opened 3 weeks ago

navaidali commented 3 weeks ago

We are using health: ^10.2.0

When we try to read NUTRITION data from health connect, the app crashes. We have tried on multiple testing devices but the app crashes on all of the devices. The flutter app is unable to get NUTRITION Data.

Code Causing the crash

protein = await health.getHealthDataFromTypes( types: [HealthDataType.NUTRITION],startTime:startTime, endTime: endTime,includeManualEntry:false, );

thelexhibition commented 3 weeks ago

+1 Also interested in this fix