File tree Expand file tree Collapse file tree
packages/health/example/lib Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments