chore: revamp checklist ui (#3380)

* chore: revamp checklist editor  ui

* chore: checklist progress bar

* test: integration tests

* fix: flutter analyzer errors

* fix: checklist percentage complete
This commit is contained in:
Richard Shiue
2023-09-13 20:44:04 +08:00
committed by GitHub
parent 524efc2620
commit 0c6a1d4ae7
36 changed files with 747 additions and 394 deletions

View File

@ -42,7 +42,7 @@ impl ChecklistCellData {
if total_options == 0 {
return 0.0;
}
((selected_options as f64) / (total_options as f64) * 10.0).trunc() / 10.0
((selected_options as f64) / (total_options as f64) * 100.0).round() / 100.0
}
pub fn from_options(options: Vec<String>) -> Self {