fix: required named parameter 'onLiveTextInput' must be provided
This commit is contained in:
parent
a0ff609cb1
commit
967e3e82a8
1 changed files with 21 additions and 11 deletions
|
|
@ -55,6 +55,18 @@ class _MobileEditorState extends State<MobileEditor> {
|
|||
child: MobileFloatingToolbar(
|
||||
editorState: editorState,
|
||||
editorScrollController: editorScrollController,
|
||||
toolbarBuilder: (context, anchor) {
|
||||
return AdaptiveTextSelectionToolbar.editable(
|
||||
clipboardStatus: ClipboardStatus.pasteable,
|
||||
onCopy: () => copyCommand.execute(editorState),
|
||||
onCut: () => cutCommand.execute(editorState),
|
||||
onPaste: () => pasteCommand.execute(editorState),
|
||||
onSelectAll: () => selectAllCommand.execute(editorState),
|
||||
anchors: TextSelectionToolbarAnchors(
|
||||
primaryAnchor: anchor,
|
||||
),
|
||||
);
|
||||
},
|
||||
child: AppFlowyEditor(
|
||||
editorStyle: editorStyle,
|
||||
editorState: editorState,
|
||||
|
|
@ -128,6 +140,11 @@ class _MobileEditorState extends State<MobileEditor> {
|
|||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
);
|
||||
map[ParagraphBlockKeys.type] = TextBlockComponentBuilder(
|
||||
configuration: BlockComponentConfiguration(
|
||||
placeholderText: (node) => 'Type something...',
|
||||
),
|
||||
);
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue