Skip to content

Commit b59ee61

Browse files
committed
Move insulin delivery to iOS
1 parent 733c196 commit b59ee61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/health/example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,6 @@ class HealthAppState extends State<HealthApp> {
260260
type: HealthDataType.BLOOD_GLUCOSE,
261261
startTime: earlier,
262262
endTime: now);
263-
success &= await health.writeInsulinDelivery(
264-
5, InsulinDeliveryReason.BOLUS, earlier, now);
265263
success &= await health.writeHealthData(
266264
value: 1.8,
267265
type: HealthDataType.WATER,
@@ -386,6 +384,8 @@ class HealthAppState extends State<HealthApp> {
386384
);
387385

388386
if (Platform.isIOS) {
387+
success &= await health.writeInsulinDelivery(
388+
5, InsulinDeliveryReason.BOLUS, earlier, now);
389389
success &= await health.writeHealthData(
390390
value: 30,
391391
type: HealthDataType.HEART_RATE_VARIABILITY_SDNN,

0 commit comments

Comments
 (0)