flutter_code_view 0.0.3
flutter_code_view: ^0.0.3 copied to clipboard
A Flutter package for displaying and highlighting code snippets with syntax highlighting and customizable themes.
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.