slug 1.0.0-dev-1 copy "slug: ^1.0.0-dev-1" to clipboard
slug: ^1.0.0-dev-1 copied to clipboard

outdated

Terminal Spinners

SLUG 🐌

Terminal progress with different spinners.

GIf

Install #


 dart pub add slug

Usage #


  var slug = Slug(
    slugStyle: SlugStyle.toggle7,
  );

  var slug1 = Slug(
    slugStyle: SlugStyle.noise,
  );

  var progress = slug.progress('doing some work');
  await Future.delayed(Duration(seconds: 2));
  progress.finish(message: "Completed!");

  progress = slug1.progress('doing some work');
  await Future.delayed(Duration(seconds: 2));
  progress.finish(showTiming: true, message: "Completed!");

Inspired from Ora and cli_util. Thank you sindresorhus for the amazing collection of spinners.

10
likes
0
points
698
downloads

Publisher

unverified uploader

Weekly Downloads

Terminal Spinners

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

chalk, meta, path

More

Packages that depend on slug