From b8d3bc704856c0aa0de02532ef7b2ba2374ec41b Mon Sep 17 00:00:00 2001 From: Crondung <1922635@stud.hs-mannheim.de> Date: Mon, 6 Mar 2023 11:34:01 +0100 Subject: [PATCH] redo testing button add functinality --- lib/widgets/view_form/view_form_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/view_form/view_form_page.dart b/lib/widgets/view_form/view_form_page.dart index 099ae07..e58d5b0 100644 --- a/lib/widgets/view_form/view_form_page.dart +++ b/lib/widgets/view_form/view_form_page.dart @@ -5,6 +5,7 @@ import 'package:smoke_cess_app/widgets/buttons/round_button_widget.dart'; import 'package:smoke_cess_app/providers/input_provider.dart'; import 'package:smoke_cess_app/providers/page_provider.dart'; import 'package:smoke_cess_app/providers/tasks_provider.dart'; +import 'package:smoke_cess_app/widgets/popup/popup_for_task_done.dart'; class ViewFormPage extends StatelessWidget { final Widget form; @@ -34,8 +35,7 @@ class ViewFormPage extends StatelessWidget { child: RoundAddButton( onPressed: tasksProvider.tasks[page] == true ? () => pageProvider.swap() - : () => pageProvider.swap(), - //: () => showTaskDonePopup(context, page), + : () => showTaskDonePopup(context, page), ), ) ]);