Flutter Gems is a curated list of 7250+ useful Dart & Flutter packages that are categorized based on functionality.
Top Flutter Code Editor and Syntax Highlighter packages
Last updated: May 18, 2026
Syntax Highlighters and Code Editors are specialized text inputs used for developer tools, learning platforms, and snippet sharing apps, rendering code with colored tokens.
Best Practices for Code Editors
- Monospace Fonts: Always enforce a monospace font (like Fira Code or Roboto Mono) for code blocks to ensure proper indentation and character alignment.
- Language Detection: Use packages that automatically detect the programming language based on the snippet context, applying the correct regex rules for keywords, strings, and comments.
- Performance: Highlighting a 5,000-line JSON file in real-time on a mobile device will severely lag the UI. Implement lazy highlighting or truncate massive files to maintain performance.
The complete list of Syntax Highlighters, Code Editors, and Code Block rendering packages for Flutter is provided below.
flutter_highlight
👍 155 ⬇️ 205.7K
Dart 3 compatibleMaintenance Status: Poor
Syntax highlighting widget for Flutter with lots of languages and themes support.
highlight
👍 59 ⬇️ 231.9K
Dart 3 compatibleMaintenance Status: Poor
Syntax highlighting for Dart with lots of languages and themes support.
flutter_code_editor
👍 227 ⬇️ 13.6K
Dart 3 compatibleMaintenance Status: Good
A customizable code field supporting syntax highlighting and code folding.
code_text_field
👍 169 ⬇️ 10.3K
Dart 3 compatibleMaintenance Status: Poor
A customizable code field supporting syntax highlighting, bi-directionnal scrolling and code modifiers
re_editor
👍 134 ⬇️ 23.6K
Dart 3 compatibleMaintenance Status: Good
Re-Editor is a powerful lightweight text and code editor widget.
code_editor
👍 114 ⬇️ 710
Dart 3 compatibleMaintenance Status: Poor
A code editor (dart, js, html,...) for Flutter with syntax highlighting and custom theme.
syntax_highlight
👍 74 ⬇️ 41.4K
Dart 3 compatibleMaintenance Status: Good
Syntax highlighting in the style of VSCode for Flutter, takes a string and returns a formatted TextSpan.
flutter_syntax_view
👍 100 ⬇️ 5.5K
Dart 3 compatibleMaintenance Status: Average
A static syntax highlighter widget which highlights code text according to the programming language syntax using native Dart code.
code_forge
👍 53 ⬇️ 6.8K
Dart 3 compatibleMaintenance Status: Good
A sophisticated code editor package with AI completion, LSP support, syntax highlighting, and advanced editing capabilities.
re_highlight
👍 22 ⬇️ 41.2K
Dart 3 compatibleMaintenance Status: Poor
Re-Highlight is a powerful text syntax highlighting library.
flutter_highlighter
👍 23 ⬇️ 38.5K
Dart 3 compatibleMaintenance Status: Poor
Syntax highlighting widget for Flutter with lots of languages and themes support.
highlighter
👍 6 ⬇️ 39.4K
Dart 3 compatibleMaintenance Status: Poor
Syntax highlighting for Dart with lots of languages and themes support.
json_editor_flutter
👍 31 ⬇️ 3.6K
Dart 3 compatibleMaintenance Status: Average
Edit your JSON object with the help of this package. Create and delete objects using this user friendly widget.
flutter_monaco
👍 28 ⬇️ 324
Dart 3 compatibleMaintenance Status: Good
Integrate Monaco Editor (VS Code's editor) in Flutter apps. Features 100+ languages, syntax highlighting, themes, and full API.
json_editor
👍 22 ⬇️ 1.5K
Dart 3 compatibleMaintenance Status: Poor
A json editor on flutter.
flutter_dartpad
👍 22 ⬇️ 39
Dart 3 compatibleMaintenance Status: Poor
A Dartpad widget which can be embed with mobile application. It supports all the designs provided in dartpad embedding guide.
codemirror
👍 19 ⬇️ 772
Dart 3 compatibleMaintenance Status: Average
A Dart wrapper around the CodeMirror text editor.
flutter_code_view
👍 2 ⬇️ 43
Dart 3 compatibleMaintenance Status: Good
A Flutter package for displaying and highlighting code snippets with syntax highlighting and customizable themes.
rich_code_editor
👍 34 ⬇️ 40
Maintenance Status: Poor
Now create your own rich code editor with syntax highlight support in Flutter.
syntax_highlighter
👍 19 ⬇️ 31
Maintenance Status: Poor
syntax highlighter for show your dart code in the application.
