mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user