Skip to content

Commit b3cd2b2

Browse files
committed
Clean up
1 parent 124036a commit b3cd2b2

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

packages/health/example/lib/main.dart

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -197,27 +197,6 @@ class HealthAppState extends State<HealthApp> {
197197
});
198198
}
199199

200-
Future<void> writeNutritionDataTest() async {
201-
final now = DateTime.now();
202-
final earlier = now.subtract(const Duration(minutes: 20));
203-
204-
// Add nutrition data
205-
bool success = await health.writeMeal(
206-
mealType: MealType.DINNER,
207-
startTime: earlier,
208-
endTime: now,
209-
caloriesConsumed: 1000,
210-
carbohydrates: 50,
211-
protein: 25,
212-
fatTotal: 50,
213-
name: "Banana",
214-
);
215-
216-
setState(() {
217-
_state = success ? AppState.DATA_ADDED : AppState.DATA_NOT_ADDED;
218-
});
219-
}
220-
221200
/// Add some random health data.
222201
/// Note that you should ensure that you have permissions to add the
223202
/// following data types.

0 commit comments

Comments
 (0)