CodeForge constructor

const CodeForge({
  1. Key? key,
  2. CodeForgeController? controller,
  3. UndoRedoController? undoController,
  4. Map<String, TextStyle>? editorTheme,
  5. Mode? language,
  6. TextStyle? ghostTextStyle,
  7. String? filePath,
  8. String? initialText,
  9. FocusNode? focusNode,
  10. ScrollController? verticalScrollController,
  11. ScrollController? horizontalScrollController,
  12. TextStyle? textStyle,
  13. EdgeInsets? innerPadding,
  14. bool readOnly = false,
  15. bool autoFocus = false,
  16. bool lineWrap = false,
  17. bool enableFolding = true,
  18. bool enableGuideLines = true,
  19. bool enableSuggestions = true,
  20. bool enableGutter = true,
  21. bool enableGutterDivider = false,
  22. CodeSelectionStyle? selectionStyle,
  23. GutterStyle? gutterStyle,
  24. SuggestionStyle? suggestionStyle,
  25. HoverDetailsStyle? hoverDetailsStyle,
  26. MatchHighlightStyle? matchHighlightStyle,
  27. PreferredSizeWidget finderBuilder(
    1. BuildContext context,
    2. FindController findController
    )?,
  28. FindController? findController,
})

Creates a CodeForge code editor widget.

Implementation

const CodeForge({
  super.key,
  this.controller,
  this.undoController,
  this.editorTheme,
  this.language,
  this.ghostTextStyle,
  this.filePath,
  this.initialText,
  this.focusNode,
  this.verticalScrollController,
  this.horizontalScrollController,
  this.textStyle,
  this.innerPadding,
  this.readOnly = false,
  this.autoFocus = false,
  this.lineWrap = false,
  this.enableFolding = true,
  this.enableGuideLines = true,
  this.enableSuggestions = true,
  this.enableGutter = true,
  this.enableGutterDivider = false,
  this.selectionStyle,
  this.gutterStyle,
  this.suggestionStyle,
  this.hoverDetailsStyle,
  this.matchHighlightStyle,
  this.finderBuilder,
  this.findController,
});