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 ↗