chalk 1.0.2 chalk: ^1.0.2 copied to clipboard
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());