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

outdated

Chalk helps to style your terminal strings

example/main.dart

import 'package:chalk/chalk.dart';

void main() {
  var ch = Chalk();

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

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

  // Not widely supported
  print(ch.yellow('yellow').underLined());
  print(ch.yellow('yellow').strikeThrough());

  // Combine styled and normal strings
  print('chain text'.green() + ' Normal Text ' + 'chain text2'.red());
  print('\n');
}
8
likes
0
pub points
69%
popularity

Publisher

unverified uploader

Chalk helps to style your terminal strings

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on chalk