cli_spin
1.0.1, released 3 years ago by marinvitlov.com
Displays a customizable terminal spinner for sync and async operations.
What it does
The package provides a CLI spinner that can be started, stopped, and customized with colors, text, and custom frames. It includes predefined spinner styles and helper methods for success, fail, warn, and info outcomes.
AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple visual indicator for long-running CLI tasks.
- You want easy color and text customization for terminal output.
Skip it when
- Building graphical Flutter UI apps where a widget spinner is required.
- You need a progress bar or more detailed progress reporting.
Strengths
- 80+ predefined spinner styles
- Color and text customization
- Supports both sync and async workflows
- Convenient success/fail/info helper methods
Weaknesses
- Works only in terminal environments
- No graphical UI support
- Limited to spinner functionality
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
import 'dart:async';
import 'package:cli_spin/cli_spin.dart';
void main() {
final spinner = CliSpin(text: 'Loading...', spinner: CliSpinners.line).start();
Timer(Duration(seconds: 2), () => spinner.success('Done'));
}Works with
Packages commonly used together with cli_spin: ones it builds on, ones built on it, and its own family.