FLUTTER ECOSYSTEM

polarby/rich_console

polarby/rich_console open-source repository details.

rich_console 프로젝트 이미지
Stars
7
Forks
0
최근 푸시(UTC)
2023. 12. 17.
프로젝트 상태
활성
Paul V. GitHub avatar
GITHUB User

Paul V. ↗

Based in Munich, Germany

Munich, Germany
언어Dart

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 4 개
  • flutter{"sdk":"flutter"}
  • intl^0.19.0
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^2.0.2

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

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

https://i.imgur.com/17SaE6T.jpg

https://i.imgur.com/Whe5gbj.jpg

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.