appflowy_editor_plugins
library
Functions
-
codeBlockCommands({CodeBlockLocalizations localizations = const CodeBlockLocalizations()})
→ List<CommandShortcutEvent>
-
-
codeBlockItem(String name, [IconData icon = Icons.abc, List<String> keywords = const ['code', 'codeblock'], String? language])
→ SelectionMenuItem
-
-
codeBlockNode({Delta? delta, String? language})
→ Node
-
-
insertNewParagraphNextToCodeBlockCommand(String description)
→ CommandShortcutEvent
-
Shift+enter to insert a new node next to the code block.
-
linkPreviewNode({required String url})
→ Node
-
-
pasteInCodeblock(String description)
→ CommandShortcutEvent
-
ctrl + v to paste text in code block.
-
selectAllInCodeBlockCommand(String description)
→ CommandShortcutEvent
-
CTRL+A to select all content inside a Code Block, if cursor is inside one.
-
tabSpacesAtCurosrInCodeBlockCommand(String description)
→ CommandShortcutEvent
-
Tab to insert two spaces at the cursor if selection is collapsed.
-
tabToDeleteSpacesInCodeBlockCommand(String description)
→ CommandShortcutEvent
-
Shift+tab to delete two spaces at the line start in code block if needed.
-
tabToInsertSpacesInCodeBlockCommand(String description)
→ CommandShortcutEvent
-
Tab to insert two spaces at the line start in code block,
if there is more than one line selected.
-
videoBlockItem(String name, [IconData icon = Icons.video_file, List<String> keywords = const ['video', 'videoblock', 'player'], String? src])
→ SelectionMenuItem
-
-
videoBlockNode({String? src, double? width})
→ Node
-
Typedefs
-
CodeBlockCopyBuilder
= Widget Function(EditorState, Node)
-
Used to provide a custom copy button for the CodeBlockComponentWidget.
-
CodeBlockLanguagePickerBuilder
= Widget Function(EditorState editorState, List<String> supportedLanguages, void onLanguageSelected(String language), {String? selectedLanguage})
-
Used to provide a custom Language picker widget for the CodeBlockComponentWidget.
-
LinkPreviewBlockPreviewBuilder
= Widget Function(BuildContext context, Node node, String url, String? title, String? description, String? imageUrl)
-
-
-
-
VideoBlockWidgetBuilder
= Widget Function(Node)
-
-
VoidVideoCallback
= void Function(BuildContext, Node, EditorState)
-