redo testing button add functinality
parent
5795b0a4e8
commit
b8d3bc7048
|
@ -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),
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue