FLUTTER ECOSYSTEM

ansicolor

Looking to add some color to your terminal logs? `ansicolor` is an xterm-256 color support library that lets you change the foreground and background color of your text.

ansicolor cover
Latest version
2.0.3
30-day downloads
1.9M
Likes
167
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

ansicolor is a Dart library providing xterm-256 color support for terminal output, enabling developers to customize text foreground and background colors in console logs. It integrates seamlessly with Flutter applications across multiple platforms, enhancing debug visibility and log readability. The package is ideal for developers who want to add visual distinction to their terminal output without relying on external tools. With straightforward syntax, it supports a wide range of colors and formatting options directly in the terminal.

Use cases
  • Enhancing terminal debug output
  • Color-coding log messages
  • Improving CLI tool readability
  • Adding visual feedback in console apps
  • Customizing command-line interface appearance
Key features
  • Supports xterm-256 colors
  • Easy-to-use color formatting
  • Cross-platform terminal support
  • Simple API for foreground/background colors
  • Lightweight and dependency-free
Suitable for
  • Developers building CLI tools
  • Flutter apps with console logging
  • Debugging environments requiring visual cues
  • Teams improving log clarity
  • Educational or tutorial projects
Considerations
  • Limited to terminal output only
  • Not suitable for UI rendering
  • Requires terminal that supports ANSI colors
  • May not render consistently on all terminals
  • No runtime color customization beyond code
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add ansicolor

Categories

Source repository

Related projects

Rankings