| 
														
															@@ -26,11 +26,12 @@ class ChecklistCellEditorBloc 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         await event.when( 
														 | 
														
														 | 
														
															         await event.when( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           initial: () async { 
														 | 
														
														 | 
														
															           initial: () async { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             _startListening(); 
														 | 
														
														 | 
														
															             _startListening(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            _loadOptions(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           }, 
														 | 
														
														 | 
														
															           }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           didReceiveOptions: (data) { 
														 | 
														
														 | 
														
															           didReceiveOptions: (data) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             emit(state.copyWith( 
														 | 
														
														 | 
														
															             emit(state.copyWith( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               allOptions: _makeChecklistSelectOptions(data, state.predicate), 
														 | 
														
														 | 
														
															               allOptions: _makeChecklistSelectOptions(data, state.predicate), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              percent: _percentFromSelectOptionCellData(data), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              percent: percentFromSelectOptionCellData(data), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             )); 
														 | 
														
														 | 
														
															             )); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           }, 
														 | 
														
														 | 
														
															           }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           newOption: (optionName) { 
														 | 
														
														 | 
														
															           newOption: (optionName) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -143,18 +144,21 @@ class ChecklistCellEditorState with _$ChecklistCellEditorState { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     return ChecklistCellEditorState( 
														 | 
														
														 | 
														
															     return ChecklistCellEditorState( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       allOptions: _makeChecklistSelectOptions(data, ''), 
														 | 
														
														 | 
														
															       allOptions: _makeChecklistSelectOptions(data, ''), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       createOption: none(), 
														 | 
														
														 | 
														
															       createOption: none(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      percent: _percentFromSelectOptionCellData(data), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      percent: percentFromSelectOptionCellData(data), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       predicate: '', 
														 | 
														
														 | 
														
															       predicate: '', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ); 
														 | 
														
														 | 
														
															     ); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-double _percentFromSelectOptionCellData(SelectOptionCellDataPB? data) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+double percentFromSelectOptionCellData(SelectOptionCellDataPB? data) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   if (data == null) return 0; 
														 | 
														
														 | 
														
															   if (data == null) return 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  final a = data.selectOptions.length.toDouble(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   final b = data.options.length.toDouble(); 
														 | 
														
														 | 
														
															   final b = data.options.length.toDouble(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  if (b == 0) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    return 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  final a = data.selectOptions.length.toDouble(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   if (a > b) return 1.0; 
														 | 
														
														 | 
														
															   if (a > b) return 1.0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															   return a / b; 
														 | 
														
														 | 
														
															   return a / b; 
														 |