You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go to the Nutritional plans and select one, then add a meal
Click on the pencil to add an ingredient
Search an ingredient and type the name
In the weight field add a number less than 1.0 and the app sends an exception
Expected results:
An error message or hint into the textfield to send an explaining the error
Actual results:
The result is that the page pop and didn't save the ingredient
Logs#1 NutritionPlansProvider.addMealItem (package:wger/providers/nutrition.dart:260:18)
nutrition.dart:260
2
[log] Saved ingredient 'Meal One' to db cache
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: [Ensure this value is greater than or equal to 1.]
#0 WgerBaseProvider.post (package:wger/providers/base_provider.dart:106:7)
base_provider.dart:106
#1 NutritionPlansProvider.addMealItem (package:wger/providers/nutrition.dart:260:18)
nutrition.dart:260
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
Expected results:
An error message or hint into the textfield to send an explaining the error
Actual results:
The result is that the page pop and didn't save the ingredient
Logs
#1 NutritionPlansProvider.addMealItem (package:wger/providers/nutrition.dart:260:18) nutrition.dart:260 2 [log] Saved ingredient 'Meal One' to db cache [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: [Ensure this value is greater than or equal to 1.] #0 WgerBaseProvider.post (package:wger/providers/base_provider.dart:106:7) base_provider.dart:106 #1 NutritionPlansProvider.addMealItem (package:wger/providers/nutrition.dart:260:18) nutrition.dart:260The text was updated successfully, but these errors were encountered: