chalk 1.2.1 copy "chalk: ^1.2.1" to clipboard
chalk: ^1.2.1 copied to clipboard

Chalk helps to style your terminal strings

example/main.dart

import 'package:chalk/chalk.dart';

void main() {
  print('/n');
  // Specify font face by using [ftFace] property
  print(chalk.blue('blue text', ftFace: ChalkFtFace.italic));
  print(chalk.red('red Text', ftFace: ChalkFtFace.bold));

  // Chain styles
  print(chalk.faint('faint text').blue());
  print(chalk.cyan('cyan').bold());

  // Not widely supported
  print(chalk.yellow('yellow').underLine());
  print(chalk.yellow('yellow').strikeThrough());
  print(chalk.bold('Hai').magenta());

  // Combine styled and normal strings
  print('chain text'.green() + ' Normal Text ' + 'chain text2'.red());
  print('\n');
}
8
likes
140
points
14.8k
downloads

Publisher

unverified uploader

Weekly Downloads

Chalk helps to style your terminal strings

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on chalk