lite_code_editor 0.1.0
lite_code_editor: ^0.1.0 copied to clipboard
A lightweight, customizable Flutter code editor widget with syntax highlighting, auto-indent, autocomplete, line selection mode, and dark/light themes. No heavy dependencies — pure Flutter.
Changelog #
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
0.1.0 - 2025-01-01 #
Added #
CodeEditorwidget — main editor widget with full editing supportCodeEditorController— extendsTextEditingControllerwith language and line selection state- Dart/Flutter syntax highlighting with token-level coloring:
- Keywords, built-in types, modifiers
- Strings with interpolation (
$var,${expr}) - Line comments
//, block comments/* */, DartDoc/// - Annotations
@override, numbers, class names, function names
- Auto-indent on Enter — preserves current indentation level
- Autocomplete suggestion bar — horizontal scrollable chip bar at the bottom of the editor, filtered in real time as the user types
customKeywordsparameter — inject domain-specific keywords into the autocomplete engine- Line selection mode — tap any line to highlight it and receive its
index and content via
onLineSelected - Synchronized scroll — gutter line numbers scroll in perfect sync with the code area
- Horizontal scroll — long lines scroll horizontally without wrapping
- Dark theme (
EditorTheme.dark()) — VS Code Dark+ inspired palette - Light theme (
EditorTheme.light()) — clean light palette EditorTheme— fully customizable color and typography tokens- Zero external dependencies — pure Flutter implementation