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

outdated

Chalk helps to style your terminal strings

Style your terminal strings🎨


Highlights #

  • Expressive API
  • Highly performant
  • Ability to nest styles
  • Clean and focused

Install #

With dart:

$ dart pub add chalk

With Flutter:

$ flutter pub add chalk

Chalk comes with an easy to use API where you just chain the styles you want.

  Chalk ch = Chalk();
  print(ch.bold('This is awesome').blue());

  // 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());

  // Combine styled and normal strings
  print('chain text'.blue() + ' world ' + 'chain text2'.red());
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