flutter_code_view 0.0.5 copy "flutter_code_view: ^0.0.5" to clipboard
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_view native toTextSpan() 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.dart with detailed documentation for exported classes and enums.
  • IMPROVED: Better documentation for ThemeType enum 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 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
140
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