flutter_code_view 0.0.3 copy "flutter_code_view: ^0.0.3" to clipboard
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 showLineNumbers parameter to display line numbers alongside code.
  • NEW: Added selectionColor parameter for custom text selection color.
  • NEW: Added lineNumberStyle parameter 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.rich with SelectionArea + Text.rich for 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 withOpacity with withValues for 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.
2
likes
150
points
34
downloads

Publisher

verified publisherswanflutterdev.com

Weekly Downloads

A Flutter package for displaying and highlighting code snippets with syntax highlighting and customizable themes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

base_cod_view, flutter

More

Packages that depend on flutter_code_view