added unfocus of search text input

This commit is contained in:
broodjeaap89 2021-09-09 20:28:17 +02:00
parent 3c3dfe706a
commit 67edbfc472

View file

@ -54,9 +54,11 @@ class RecipesPageState extends State<RecipesPage> {
} }
return InkWell( return InkWell(
onTap: () { onTap: () {
FocusScope.of(context).unfocus();
Navigator.pushNamed(context, "/recipe/view", arguments: pizzaRecipe); Navigator.pushNamed(context, "/recipe/view", arguments: pizzaRecipe);
}, },
onLongPress: () { onLongPress: () {
FocusScope.of(context).unfocus();
showDialog(context: context, builder: (BuildContext context) { showDialog(context: context, builder: (BuildContext context) {
return AlertDialog( return AlertDialog(
title: Text(pizzaRecipe.name), title: Text(pizzaRecipe.name),