redo testing button add functinality

main
Julian Gegner 2023-03-06 11:34:01 +01:00
parent 5795b0a4e8
commit b8d3bc7048
1 changed files with 2 additions and 2 deletions

View File

@ -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/input_provider.dart';
import 'package:smoke_cess_app/providers/page_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/providers/tasks_provider.dart';
import 'package:smoke_cess_app/widgets/popup/popup_for_task_done.dart';
class ViewFormPage extends StatelessWidget { class ViewFormPage extends StatelessWidget {
final Widget form; final Widget form;
@ -34,8 +35,7 @@ class ViewFormPage extends StatelessWidget {
child: RoundAddButton( child: RoundAddButton(
onPressed: tasksProvider.tasks[page] == true onPressed: tasksProvider.tasks[page] == true
? () => pageProvider.swap() ? () => pageProvider.swap()
: () => pageProvider.swap(), : () => showTaskDonePopup(context, page),
//: () => showTaskDonePopup(context, page),
), ),
) )
]); ]);