From af628a8fabafb5291141e7cdb285fe0f1839b7cb Mon Sep 17 00:00:00 2001 From: "k.mannweiler" <2012491@stud.hs-mannheim.de> Date: Mon, 6 Mar 2023 16:07:15 +0100 Subject: [PATCH] Corrected Testing code --- lib/widgets/view_form/view_form_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/view_form/view_form_page.dart b/lib/widgets/view_form/view_form_page.dart index c695e9c..828b9af 100644 --- a/lib/widgets/view_form/view_form_page.dart +++ b/lib/widgets/view_form/view_form_page.dart @@ -34,7 +34,7 @@ class ViewFormPage extends StatelessWidget { margin: EdgeInsets.symmetric(vertical: height * 0.02), child: RoundIconButton( iconData: Icons.add_outlined, - onPressed: true + onPressed: tasksProvider.tasks[page] ?? true ? () => pageProvider.swap() : () => showTaskDonePopup(context, page), ),