Skip to content

Commit

Permalink
Break time editable whenever restarts > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mabe committed Jan 17, 2025
1 parent a229855 commit ad81fab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/pages/set_timings/set_timings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,17 @@ class _SetTimingsState extends State<SetTimings> {
titleText: titleList[index],
subtitleText: subtitleList[index],
enabled: titleList[index] == breakTitle
? (notifierMap[breakTitle]!.value > 0 ? true : false)
? ((notifierMap[breakTitle]!.value > 0) ||
(notifierMap[repeatTitle]!.value > 0)
? true
: false)
: true,
leadingWidget: iconList[index],
trailingWidget: titleList[index] != additionalConfigTitle
? Visibility(
visible: titleList[index] == breakTitle
? (notifierMap[breakTitle]!.value > 0
? ((notifierMap[breakTitle]!.value > 0) ||
(notifierMap[repeatTitle]!.value > 0)
? true
: false)
: true,
Expand Down

0 comments on commit ad81fab

Please sign in to comment.