From 06c75637682053f2f71250d6622e2d91b1213527 Mon Sep 17 00:00:00 2001 From: Xin Yao Date: Mon, 26 Apr 2021 09:07:04 -0700 Subject: [PATCH] Fix simple viewer compilation error --- lib/widgets/simple_viewer.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/widgets/simple_viewer.dart b/lib/widgets/simple_viewer.dart index 97cdcedd..ee1a7732 100644 --- a/lib/widgets/simple_viewer.dart +++ b/lib/widgets/simple_viewer.dart @@ -204,7 +204,8 @@ class _QuillSimpleViewerState extends State : null, embedBuilder, _cursorCont, - indentLevelCounts); + indentLevelCounts, + _handleCheckboxTap); result.add(editableTextBlock); } else { throw StateError('Unreachable.'); @@ -213,6 +214,12 @@ class _QuillSimpleViewerState extends State 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;