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,
);
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, );