feat: segmented checklist progress bar#3770
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3770 +/- ##
==========================================
- Coverage 61.06% 60.99% -0.07%
==========================================
Files 588 588
Lines 27005 27027 +22
==========================================
- Hits 16490 16486 -4
- Misses 10515 10541 +26
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
|
I'd much prefer to use a less expensive widget for each of the segment than |
|
Yes that makes a lot of sense, I will implement the changes right away |
| for (int i = 0, | ||
| j = widget.tasks.where((e) => e.isSelected).length; | ||
| i < widget.tasks.length; |
There was a problem hiding this comment.
I think you can calculate what is the number of completed tasks and incompleted tasks, then do a spread operator on a List.generate
| j = widget.tasks.where((e) => e.isSelected).length; | ||
| i < widget.tasks.length; | ||
| i++, j--) | ||
| Expanded( |
There was a problem hiding this comment.
I think Flexible would be more suitable here
There was a problem hiding this comment.
Thank you for the input, I will make both the changes
richardshiue
left a comment
There was a problem hiding this comment.
LGTM, thanks for the contribution!
[FR] #3669
Feature Preview
Added segments to the checklist progress bar for number of tasks less than or equal to 5
segmented-progress-bar.mp4
PR Checklist