v3.0.0
console_color
用於終端機的256種顏色方便列舉。此程式庫為終端機的顏色代碼提供易辨識的名稱。
3喜歡 3.3萬近 30 天下載160Pub 分數
AndroidiOSLinuxmacOSWebWindows
用於終端機的256種顏色方便列舉。此程式庫為終端機的顏色代碼提供易辨識的名稱。
以下為英文專案原文快照,最新內容請造訪 GitHub。
The convenient enum of 256 colors for console. Console Color gives the color code for the console an easily recognizable name.
With Dart:
dart pub add console_color
With Flutter:
flutter pub add console_color
import 'package:console_color/console_color.dart';
import 'package:console_color/console_color.dart';
void main() {
final color = ConsoleColor.cyan;
print(color.name);
print(color.code);
for (final color in ConsoleColor.values) {
print('name=${color.name}');
print('code=${color.code}');
}
}
Copyright (c) 2022, Kato Shinya. All rights reserved.
Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
Console Color was designed and implemented by Kato Shinya.
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗