flutter_code_view 0.0.5
flutter_code_view: ^0.0.5 copied to clipboard
A Flutter package for displaying and highlighting code snippets with syntax highlighting and customizable themes.
0.0.5 #
- IMPROVED: Fixed text selection and language registration issues in
FlutterCodeView. - IMPROVED: Complete rewrite of syntax highlighting logic using
base_cod_viewnativetoTextSpan()method. - NEW: Added support for 200+ programming languages with proper registration.
- NEW: Implemented smart language switching without rebuilding.
- IMPROVED: Enhanced example app with multiple code samples for different languages (Dart, JavaScript, Python, Java, C++, Swift).
- IMPROVED: Added comprehensive dartdoc documentation to all public and private methods.
- NEW: Created
doc_reference.dartwith detailed documentation for exported classes and enums. - IMPROVED: Better documentation for
ThemeTypeenum and all 90+ available themes. - IMPROVED: Library documentation now includes features, usage examples, and component overview.
- FIX: Fixed native text selection with proper color contrast based on theme background.
- FIX: Fixed language switching to properly register and apply highlighting.
0.0.3 #
-
BREAKING: Added proper type definitions for all themes (
Map<String, TextStyle>). -
BREAKING: Added type definition for
themeMap(Map<ThemeType, Map<String, TextStyle>>). -
NEW: Added
showLineNumbersparameter to display line numbers alongside code. -
NEW: Added
selectionColorparameter for custom text selection color. -
NEW: Added
lineNumberStyleparameter for customizing line number appearance. -
IMPROVED: Enhanced text selection visibility with automatic color calculation based on theme background.
-
IMPROVED: Better contrast for selected text on both light and dark themes.
-
IMPROVED: Smart selection color that adapts to background luminance.
-
IMPROVED: Replaced
SelectableText.richwithSelectionArea+Text.richfor better text selection rendering. -
FIX: Fixed text selection not highlighting the text background properly.
-
FIX: Fixed text selection color not being visible on dark themes.
-
FIX: Replaced deprecated
withOpacitywithwithValuesfor better precision. -
FIX: Improved type safety across the entire codebase.## 0.0.2
-
Fix text selection issue.
-
Add more documentation.
-
Add example app.
0.0.1 #
- Describe initial release.