Skip to content

Commit

Permalink
feat: disable table click
Browse files Browse the repository at this point in the history
  • Loading branch information
caions committed Feb 12, 2024
1 parent fa05de7 commit e642f95
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lib/habit_tracker_table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class _HabitTrackerTableState extends State<HabitTrackerTable> {
checked:
(habit.completed ?? false) && DateTime.now().weekday == 7,
onChanged: (value) {
setState(() {
/* setState(() {
habit.completed = value;
});
}); */
},
),
),
Expand All @@ -37,9 +37,9 @@ class _HabitTrackerTableState extends State<HabitTrackerTable> {
checked:
(habit.completed ?? false) && DateTime.now().weekday == 1,
onChanged: (value) {
setState(() {
/* setState(() {
habit.completed = value;
});
}); */
},
),
),
Expand All @@ -49,9 +49,9 @@ class _HabitTrackerTableState extends State<HabitTrackerTable> {
checked:
(habit.completed ?? false) && DateTime.now().weekday == 2,
onChanged: (value) {
setState(() {
/* setState(() {
habit.completed = value;
});
}); */
},
),
),
Expand All @@ -61,9 +61,9 @@ class _HabitTrackerTableState extends State<HabitTrackerTable> {
checked:
(habit.completed ?? false) && DateTime.now().weekday == 3,
onChanged: (value) {
setState(() {
/* setState(() {
habit.completed = value;
});
}); */
},
),
),
Expand All @@ -73,9 +73,9 @@ class _HabitTrackerTableState extends State<HabitTrackerTable> {
checked:
(habit.completed ?? false) && DateTime.now().weekday == 4,
onChanged: (value) {
setState(() {
/* setState(() {
habit.completed = value;
});
}); */
},
),
),
Expand All @@ -85,9 +85,9 @@ class _HabitTrackerTableState extends State<HabitTrackerTable> {
checked:
(habit.completed ?? false) && DateTime.now().weekday == 5,
onChanged: (value) {
setState(() {
/* setState(() {
habit.completed = value;
});
}); */
},
),
),
Expand All @@ -97,9 +97,9 @@ class _HabitTrackerTableState extends State<HabitTrackerTable> {
checked:
(habit.completed ?? false) && DateTime.now().weekday == 6,
onChanged: (value) {
setState(() {
/* setState(() {
habit.completed = value;
});
}); */
},
),
),
Expand Down

0 comments on commit e642f95

Please sign in to comment.