패키지, 저장소 및 앱 카테고리 검색

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 개

소스 저장소

이 패키지를 사용하는 프로젝트