remove test sleep

This commit is contained in:
Dieter Plaetinck
2024-06-20 19:10:03 +03:00
parent 1909f7caab
commit b8f8bc4e4a

View File

@@ -484,9 +484,7 @@ void showIngredientDetails(BuildContext context, int id, {String? image}) {
showDialog(
context: context,
builder: (context) => FutureBuilder<Ingredient>(
future: Future.delayed(const Duration(seconds: 5), () {
return Provider.of<NutritionPlansProvider>(context, listen: false).fetchIngredient(id);
}),
future: Provider.of<NutritionPlansProvider>(context, listen: false).fetchIngredient(id),
builder: (BuildContext context, AsyncSnapshot<Ingredient> snapshot) {
Ingredient? ingredient;
NutritionalGoals? goals;