Skip to content

Commit 542ab43

Browse files
committed
update dragOffsetNotifier documentation
1 parent d247d87 commit 542ab43

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/src/editor/editor.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class QuillEditorState extends State<QuillEditor>
196196
QuillEditorConfig get configurations => widget.config;
197197
QuillEditorConfig get config => widget.config;
198198

199-
// The offset of the drag gesture - where to display the magnifier
199+
/// {@macro drag_offset_notifier}
200200
final dragOffsetNotifier = isMobileApp ? ValueNotifier<Offset?>(null) : null;
201201

202202
@override

lib/src/editor/raw_editor/raw_editor.dart

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class QuillRawEditor extends StatefulWidget {
2626
final QuillController controller;
2727
final QuillRawEditorConfig config;
2828

29+
/// {@template drag_offset_notifier}
2930
/// dragOffsetNotifier - Only used on iOS and Android
3031
///
3132
/// [QuillRawEditor] contains a gesture detector [EditorTextSelectionGestureDetector]
@@ -44,6 +45,7 @@ class QuillRawEditor extends StatefulWidget {
4445
/// the correct location (or hide the magnifier if null). [EditorTextSelectionOverlay] will
4546
/// use the value of the dragOffsetNotifier to hide the context menu when the magnifier is
4647
/// displayed and show the context menu when dragging is complete.
48+
/// {@endtemplate}
4749
final ValueNotifier<Offset?>? dragOffsetNotifier;
4850

4951
@override

0 commit comments

Comments
 (0)