Search packages, repositories and app categories

Package detailsv0.4.2

ansi

Terminal string styling done right with a number of builtin style functions.

AndroidiOSmacOSWindowsLinux
30-day downloads
44.1K
Likes
5
Pub points
160

Install package

flutter pub add ansi

Package Overview

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

The ansi package provides terminal string styling for Flutter applications, enabling rich text formatting in console outputs. It offers a clean, intuitive API with built-in style functions to apply colors, bold, underline, and other ANSI escape sequences. Designed for CLI or console-based apps, it ensures consistent rendering across platforms including Android, iOS, macOS, Windows, and Linux. The package simplifies the creation of visually enhanced command-line interfaces without requiring manual handling of escape codes.

Use cases

  • Enhancing CLI output with color and formatting
  • Creating interactive command-line tools
  • Improving log readability in console apps
  • Displaying styled messages in terminal environments
  • Building developer-facing CLI utilities

Key features

  • Built-in style functions for common formatting
  • Cross-platform ANSI escape sequence support
  • Simple and readable API
  • Consistent output across operating systems
  • Lightweight and easy to integrate

Suitable for

  • Developers building CLI tools
  • Console-based Flutter applications
  • Tools requiring formatted terminal output
  • Educational or debugging utilities
  • Applications targeting multiple operating systems

Considerations

  • Not intended for UI rendering in mobile or web apps
  • Requires terminal environment for visual effect
  • Limited to text styling, not full UI components
  • May not render as expected in non-ANSI terminals
  • Dependent on underlying terminal support

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

About

Ansi utilities packages to handle string with ansi characters.

Packages

Project Status Description
ansi ansi Terminal string styling done right.
ansi_codes ansi_codes ANSI escape codes for styling strings in the terminal.
ansi_regex ansi_regex Regular expression for matching ANSI escape codes.
ansi_slice ansi_slice Slice a string with ANSI escape codes.
ansi_strip ansi_strip Strip ANSI escape codes from a string
ansi_wrap ansi_wrap Wordwrap a string with ANSI escape codes.

Categories

Source repository

Projects using this package

No data available yet.