パッケージ、リポジトリ、アプリカテゴリを検索

rich_console のカバー
パッケージ詳細v1.0.7+2

rich_console

デバッグ、コンソールプログラム、または分析フィードバックを豊かに - コンソールに色とスタイルを出力します。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
109
いいね数
6
Pub ポイント
120

パッケージをインストール

flutter pub add rich_console

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

rich_console は、ターミナルベースのアプリケーションでカラーテキストとスタイルを有効にしてコンソール出力を強化する Flutter/Dart パッケージです。開発者がデバッグメッセージ、ログ、実行時フィードバックに視覚的な明確さを加えるために、カスタマイズ可能な色、フォント、書式設定を可能にします。コマンドラインツール、デバッガー、または分析ユーティリティに最適で、複数のプラットフォームで読みやすさとユーザー体験を向上させます。このパッケージは Flutter プロジェクトにスムーズに統合でき、Android、iOS、Web、macOS、Windows、Linux を含むすべての主要プラットフォームをサポートしています。

用途

  • デバッグ CLI ツール
  • ログの読みやすさを向上させる
  • インタラクティブコンソールアプリケーション
  • リアルタイムフィードバックシステム
  • テストと開発ワークフロー
  • ターミナルでデータを可視化する

主な機能

  • カラフルなコンソール出力
  • テキストスタイル(太字、斜体、下線)
  • クロスプラットフォーム互換性
  • シンプルな API インテグレーション
  • カスタマイズ可能なテーマ
  • ターミナル対応のフォーマット

適している対象

  • CLI アプリを構築する開発者
  • デバッグの可視性を向上させるチーム
  • 教育またはチュートリアルツール
  • ターミナルでのデータ可視化
  • 開発環境におけるログの強化

注意事項

  • コンソール出力のみに制限
  • すべてのターミナルエミュレーターで動作しない可能性があります
  • 非端末環境のサポートなし
  • プラットフォーム固有の ANSI エスケープコードに依存しています
  • UIレンダリングを目的としていません
  • 手動でのテーマ設定が必要です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト