Search packages, repositories and app categories

rich_console cover
Package detailsv1.0.7+2

rich_console

Enrich your debugging, console programs or analysis feedbacks - Print colors and styles in your console.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
109
Likes
6
Pub points
120

Install package

flutter pub add rich_console

Package Overview

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

rich_console is a Flutter/Dart package that enhances console output by enabling colored text and styling in terminal-based applications. It allows developers to add visual clarity to debugging messages, logs, and runtime feedback through customizable colors, fonts, and formatting. Ideal for command-line tools, debuggers, or analysis utilities, it improves readability and user experience across multiple platforms. The package integrates seamlessly with Flutter projects and supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Debugging CLI tools
  • Enhancing log readability
  • Interactive console applications
  • Real-time feedback systems
  • Testing and development workflows
  • Visualizing data in terminal

Key features

  • Colorful console output
  • Text styling (bold, italic, underline)
  • Cross-platform compatibility
  • Simple API integration
  • Customizable themes
  • Terminal-friendly formatting

Suitable for

  • Developers building CLI apps
  • Teams improving debug visibility
  • Educational or tutorial tools
  • Data visualization in terminals
  • Logging enhancement in dev environments

Considerations

  • Limited to console output only
  • May not work in all terminal emulators
  • No support for non-terminal environments
  • Depends on platform-specific ANSI escape codes
  • Not intended for UI rendering
  • Requires manual theme configuration

Original README

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

pub package

A natural way of printing text styles and colors in flutter/dart.

This packages contains a set of configurations that make it easy to differentiate console outputs and print all sort of colors. It's multi-IDE compatible as it is based on the basic ANSI escape codes. Note that there might be parameters and features that your IDE doesn't support. You will notice this simply that no effect is applied to you text.

Features

Usage

import 'package:rich_console/rich_console.dart';

void main(){
  
  // * Reusable styles
  final yourReusableStyle = RichStyle(italic: true, foreground: Colors.pinkAccent);
  printRich("Your Text", style: yourReusableStyle);
  printRich("Another Text", style: yourReusableStyle.copyWith(framed: true));
  
  // * Simple prints
  printRich("Background", background: Colors.green);
  printRich("Foreground", foreground: Colors.blue);
  printRich("Italic", italic: true);
  printRich("Bold", bold: true);
  printRich("Underline", underline: true);
  printRich("Invert",
      foreground: Colors.blue, background: Colors.green, invert: true);
  printRich("Strike", strike: true);
  printRich("DoubleUnderline", doubleUnderline: true);
  printRich("Framed", framed: true);
  printRich("Encircled", encircled: true);
}

Additional Information

Functions
  • printRich()

  • printError()

  • printWarning()

Settable Parameters
  • Foreground
  • Background
  • Bold
  • Italic
  • Bold
  • Underline
  • SlowBlink
  • RapidBlink
  • Invert
  • Conceal
  • Strike
  • Gothic
  • DoubleUnderline
  • Framed
  • Encircled
  • Overlined
  • UnderlineColor

Contributions

Please feel welcome add anything that is missing. Simply create a pull request. Especially, ff you are familiar with obtaining text input from the console please make sure to add such features to this package.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package