FLUTTER ECOSYSTEM

chalkdart

Console/Logging text coloring and styling library for Dart. 'Terminal string styling done right' The default mode uses ANSI codes to style the text for Console/Terminal display. HTML mode can be activated so that all text is colored and styled using HTML so ChalkDart can be use for sending colored/styled logs to the Server for viewing from a browser as well.

chalkdart cover
Latest version
3.1.0
30-day downloads
56.1K
Likes
70
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

ChalkDart is a Dart library for adding color and styling to console output using ANSI codes by default, enabling rich terminal text formatting. It also supports HTML mode, allowing styled logs to be sent to servers for browser-based viewing. Ideal for CLI tools and debugging, it enhances readability of log messages with consistent, cross-platform styling. The package integrates seamlessly into Flutter and non-Flutter Dart projects across multiple platforms.

Use cases
  • CLI application logging
  • Debugging with colored output
  • Sending styled logs to web interfaces
  • Enhancing terminal UX in command-line tools
  • Real-time console feedback in development
  • Server-side log visualization via HTML
Key features
  • ANSI code-based terminal styling
  • HTML mode for browser-compatible logs
  • Cross-platform support (Android, iOS, macOS, Windows, Linux)
  • Simple, chainable API for text styling
  • Supports foreground and background colors
  • Easy integration with Flutter and Dart apps
Suitable for
  • Developers building CLI tools
  • Teams needing readable console logs
  • Applications requiring styled server-side logging
  • Frontend developers visualizing logs in browsers
  • Projects targeting multiple operating systems
Considerations
  • HTML mode requires server-side rendering or client handling
  • ANSI codes may not render in all legacy terminals
  • Limited to text styling—no advanced UI components
  • Depends on platform-specific terminal capabilities
  • Not intended for graphical user interfaces
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add chalkdart

Categories

Source repository

Related projects