val_highlight_flutter 0.1.0 copy "val_highlight_flutter: ^0.1.0" to clipboard
val_highlight_flutter: ^0.1.0 copied to clipboard

Flutter widgets for syntax-highlighted code: CodeView for display and CodeField for editing, with 55 languages, themes and smooth large files.

0.1.0 #

First release.

val_highlight_flutter shows and edits syntax-highlighted code in Flutter, using the val_highlight engine.

Added #

  • CodeView — highlighted code with line numbers, highlighted lines, wrapping or horizontal scrolling, selection that never copies line numbers, a header slot, and custom gutter and line builders. Large files render lazily and are highlighted in a background isolate.
  • CodeField — a code editor. Tab and Shift+Tab indent and outdent, Enter keeps the indentation, and large documents stay fast by colouring only the visible lines.
  • HighlightTextController — highlights any TextField as you type, re-scanning only what each edit can affect.
  • Tappable tokens — CodeView.onTokenTap and CodeView.spanBuilder.
  • CodeTheme — app-wide defaults through ThemeData.extensions; follows light and dark mode.
  • CodeHighlighter — result caching, isolate threshold, and preload to compile languages during idle frames.
  • Language detection and a generic fallback when no language is given.
3
likes
160
points
35
downloads

Documentation

API reference

Publisher

verified publisheruseval.io

Weekly Downloads

Flutter widgets for syntax-highlighted code: CodeView for display and CodeField for editing, with 55 languages, themes and smooth large files.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#syntax-highlighting #code-editor #code #widget #highlighter

License

BSD-3-Clause (license)

Dependencies

flutter, val_highlight

More

Packages that depend on val_highlight_flutter