Fix simple viewer compilation error

pull/205/head^2
Xin Yao 4 years ago
parent 760b4def7e
commit 06c7563768
  1. 9
      lib/widgets/simple_viewer.dart

@ -204,7 +204,8 @@ class _QuillSimpleViewerState extends State<QuillSimpleViewer>
: null,
embedBuilder,
_cursorCont,
indentLevelCounts);
indentLevelCounts,
_handleCheckboxTap);
result.add(editableTextBlock);
} else {
throw StateError('Unreachable.');
@ -213,6 +214,12 @@ class _QuillSimpleViewerState extends State<QuillSimpleViewer>
return result;
}
/// Updates the checkbox positioned at [offset] in document
/// by changing its attribute according to [value].
void _handleCheckboxTap(int offset, bool value) {
// readonly - do nothing
}
TextDirection get _textDirection {
final result = Directionality.of(context);
return result;

Loading…
Cancel
Save