re_editor library

Classes

CodeAutocomplete
A widget enables code autocomplete for CodeEditor.
CodeAutocompleteEditingValue
The current user input and prompts for editing a run of text.
CodeAutocompletePromptsBuilder
The autocomplete prompts builder.
CodeAutocompleteResult
The autocomplete result selected by user, the editor will apply this to code content.
CodeChunk
CodeChunkAnalyzer
CodeChunkController
CodeChunkIndicatorPainter
CodeChunkIndicatorRenderObject
CodeChunkSymbol
CodeCommentFormatter
CodeEditor
Creates a code editor.
CodeEditorStyle
An immutable style describing how to format and paint editor content.
CodeEditorTapRegion
A TapRegion that adds its children to the tap region group for widgets based on the CodeEditor widget.
CodeFieldPrompt
The field autocomplate prompt. Compared to CodeKeywordPrompt, type definitions also need to be provided.
CodeFindController
CodeFindOption
CodeFindResult
CodeFindValue
CodeFunctionPrompt
The function autocomplate prompt.
CodeHighlightTheme
The code syntax highlighting theme. We use Re-Highlight as the syntax highlighting rule. Re-Highlight provides some built-in syntax highlighting rules for dozens of programming languages, and many theme styles.
CodeHighlightThemeMode
Define language rules and restrictions for highlighting.
CodeIndicatorValue
CodeKeywordPrompt
The keyword autocomplate prompt. such as 'return', 'class', 'new' and so on.
CodeLine
CodeLineEditingController
A controller for an editor field.
CodeLineEditingControllerDelegate
A delegate controller for an editor field.
CodeLineEditingValue
The current codes, selection, and composing state for editing a run of text.
CodeLineIndex
CodeLineNumberRenderObject
CodeLineOptions
Some options of the code lines.
CodeLinePosition
A position in a string of code.
CodeLineRange
A range of code that represents a selection.
CodeLineRenderParagraph
CodeLines
CodeLineSegment
CodeLineSelection
A range of code lines that represents a selection.
CodeLineUtils
CodePrompt
Define code autocomplate prompt information.
CodeScrollController
CodeShortcutCommentIntent
CodeShortcutCopyIntent
CodeShortcutCursorMoveDocEdgeIntent
CodeShortcutCursorMoveIntent
CodeShortcutCursorMoveLineEdgeIntent
CodeShortcutCursorMovePageIntent
CodeShortcutCursorMoveWordBoundaryIntent
CodeShortcutCutIntent
CodeShortcutDeleteIntent
CodeShortcutEditableIntent
CodeShortcutEscIntent
CodeShortcutFindIntent
CodeShortcutFindToggleMatchCaseIntent
CodeShortcutFindToggleRegexIntent
CodeShortcutIndentIntent
CodeShortcutLineSelectIntent
CodeShortcutNewLineIntent
CodeShortcutOutdentIntent
CodeShortcutPasteIntent
CodeShortcutRedoIntent
CodeShortcutReplaceIntent
CodeShortcutsActivatorsBuilder
CodeShortcutSaveIntent
CodeShortcutSelectAllIntent
CodeShortcutSelectionExtendIntent
CodeShortcutSelectionExtendLineEdgeIntent
CodeShortcutSelectionExtendPageEdgeIntent
CodeShortcutSelectionExtendWordBoundaryIntent
CodeShortcutTransposeCharactersIntent
CodeShortcutUndoIntent
DefaultCodeAutocompletePromptsBuilder
The default autocomplete prompts builder.
DefaultCodeChunkAnalyzer
DefaultCodeChunkIndicator
DefaultCodeChunkIndicatorPainter
DefaultCodeCommentFormatter
DefaultCodeLineNumber
DefaultCodeShortcutsActivatorsBuilder
IParagraph
MobileSelectionToolbarController
MouseTrackerAnnotationTextSpan
NonCodeChunkAnalyzer
SelectionToolbarController
ShortcutLineDeleteIntent
ShortcutLineMoveIntent

Properties

kIsAndroid bool
final
kIsIOS bool
final
kIsMacOS bool
final

Typedefs

CodeAutocompleteWidgetBuilder = PreferredSizeWidget Function(BuildContext context, ValueNotifier<CodeAutocompleteEditingValue> notifier, ValueChanged<CodeAutocompleteResult> onSelected)
Builds the overlay autocomplete prompts view.
CodeFindBuilder = PreferredSizeWidget Function(BuildContext context, CodeFindController controller, bool readonly)
CodeIndicatorBuilder = Widget Function(BuildContext context, CodeLineEditingController editingController, CodeChunkController chunkController, CodeIndicatorValueNotifier notifier)
CodeIndicatorValueNotifier = ValueNotifier<CodeIndicatorValue?>
CodeLineSpanBuilder = TextSpan Function({required CodeLine codeLine, required BuildContext context, required int index, required TextStyle style, required TextSpan textSpan})
CodeScrollbarBuilder = Widget Function(BuildContext context, Widget child, ScrollableDetails details)
IsolateCallback<Res> = void Function(Res res)
IsolateRunnable<Req, Res> = Res Function(Req req)
OnToolbarShow = void Function(BuildContext context, TextSelectionToolbarAnchors anchors, Rect? renderRect)
PointerEnterEventWithRectListener = void Function(PointerEnterEvent event, int id, List<Rect> rects)
PointerExitEventWithRectListener = void Function(PointerExitEvent event, int id, List<Rect> rects)
ToolbarMenuBuilder = Widget Function({required TextSelectionToolbarAnchors anchors, required BuildContext context, required CodeLineEditingController controller, required VoidCallback onDismiss, required VoidCallback onRefresh})