AppFlowyEditor constructor
AppFlowyEditor({
- Key? key,
- required EditorState editorState,
- Map<
String, BlockComponentBuilder> ? blockComponentBuilders, - List<
CharacterShortcutEvent> ? characterShortcutEvents, - List<
CommandShortcutEvent> ? commandShortcutEvents, - List<
List< ? contextMenuItems,ContextMenuItem> > - ContentInsertionConfiguration? contentInsertionConfiguration,
- bool editable = true,
- bool autoFocus = false,
- Selection? focusedSelection,
- bool shrinkWrap = false,
- bool showMagnifier = true,
- EditorScrollController? editorScrollController,
- EditorStyle editorStyle = const EditorStyle.desktop(),
- Widget? header,
- FocusNode? focusNode,
- bool enableAutoComplete = false,
- AppFlowyAutoCompleteTextProvider? autoCompleteTextProvider,
Implementation
AppFlowyEditor({
super.key,
required this.editorState,
Map<String, BlockComponentBuilder>? blockComponentBuilders,
List<CharacterShortcutEvent>? characterShortcutEvents,
List<CommandShortcutEvent>? commandShortcutEvents,
List<List<ContextMenuItem>>? contextMenuItems,
this.contentInsertionConfiguration,
this.editable = true,
this.autoFocus = false,
this.focusedSelection,
this.shrinkWrap = false,
this.showMagnifier = true,
this.editorScrollController,
this.editorStyle = const EditorStyle.desktop(),
this.header,
this.footer,
this.focusNode,
this.enableAutoComplete = false,
this.autoCompleteTextProvider,
}) : blockComponentBuilders =
blockComponentBuilders ?? standardBlockComponentBuilderMap,
characterShortcutEvents =
characterShortcutEvents ?? standardCharacterShortcutEvents,
commandShortcutEvents =
commandShortcutEvents ?? standardCommandShortcutEvents,
contextMenuItems = contextMenuItems ?? standardContextMenuItems;