Skip to content

Commit 6170e9b

Browse files
committed
switch longpressed and pressed actions
1 parent 710fccd commit 6170e9b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

kitchenowl/lib/pages/household_page/planner.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ class _PlannerPageState extends State<PlannerPage> {
198198
title: plan.recipe.name,
199199
selected: true,
200200
description: plan.yields?.toString(),
201-
onPressed: () {
201+
onLongPressed: () {
202202
cubit.remove(plan.recipe);
203203
},
204-
onLongPressed: () => _openRecipePage(
204+
onPressed: () => _openRecipePage(
205205
context,
206206
cubit,
207207
plan.recipe,
@@ -250,13 +250,13 @@ class _PlannerPageState extends State<PlannerPage> {
250250
title: plan.recipe.name,
251251
description: plan.yields?.toString(),
252252
selected: true,
253-
onPressed: () {
253+
onLongPressed: () {
254254
cubit.remove(
255255
plan.recipe,
256256
plan.cookingDate,
257257
);
258258
},
259-
onLongPressed: () => _openRecipePage(
259+
onPressed: () => _openRecipePage(
260260
context,
261261
cubit,
262262
plan.recipe,

0 commit comments

Comments
 (0)