From e642f95eb359b5dc8763f86619f9de63c8522935 Mon Sep 17 00:00:00 2001 From: Caio Nascimento Date: Mon, 12 Feb 2024 14:33:34 -0300 Subject: [PATCH] feat: disable table click --- lib/habit_tracker_table.dart | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/habit_tracker_table.dart b/lib/habit_tracker_table.dart index 80d5cf9..b0b19a9 100644 --- a/lib/habit_tracker_table.dart +++ b/lib/habit_tracker_table.dart @@ -25,9 +25,9 @@ class _HabitTrackerTableState extends State { checked: (habit.completed ?? false) && DateTime.now().weekday == 7, onChanged: (value) { - setState(() { + /* setState(() { habit.completed = value; - }); + }); */ }, ), ), @@ -37,9 +37,9 @@ class _HabitTrackerTableState extends State { checked: (habit.completed ?? false) && DateTime.now().weekday == 1, onChanged: (value) { - setState(() { + /* setState(() { habit.completed = value; - }); + }); */ }, ), ), @@ -49,9 +49,9 @@ class _HabitTrackerTableState extends State { checked: (habit.completed ?? false) && DateTime.now().weekday == 2, onChanged: (value) { - setState(() { + /* setState(() { habit.completed = value; - }); + }); */ }, ), ), @@ -61,9 +61,9 @@ class _HabitTrackerTableState extends State { checked: (habit.completed ?? false) && DateTime.now().weekday == 3, onChanged: (value) { - setState(() { + /* setState(() { habit.completed = value; - }); + }); */ }, ), ), @@ -73,9 +73,9 @@ class _HabitTrackerTableState extends State { checked: (habit.completed ?? false) && DateTime.now().weekday == 4, onChanged: (value) { - setState(() { + /* setState(() { habit.completed = value; - }); + }); */ }, ), ), @@ -85,9 +85,9 @@ class _HabitTrackerTableState extends State { checked: (habit.completed ?? false) && DateTime.now().weekday == 5, onChanged: (value) { - setState(() { + /* setState(() { habit.completed = value; - }); + }); */ }, ), ), @@ -97,9 +97,9 @@ class _HabitTrackerTableState extends State { checked: (habit.completed ?? false) && DateTime.now().weekday == 6, onChanged: (value) { - setState(() { + /* setState(() { habit.completed = value; - }); + }); */ }, ), ),