v1.0.7+2rich_console
豐富您的除錯、主控台程式或分析回饋 - 在主控台中列印顏色和樣式。
polarby/rich_console open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
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.
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);
}
printRich()
printError()
printWarning()
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.
依賴清單 4 項
{"sdk":"flutter"}^0.19.0{"sdk":"flutter"}^2.0.2先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗