linear_timer
2.0.0, released 4 years ago by an unverified publisher
A widget that uses a Linear Progress Indicator as a countdown or forward timer.
What it does
Provides a LinearTimer widget that acts as a visual progress indicator for timers. Supports both forward and countdown modes, callbacks for timer completion, and external control using a LinearTimerController.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a visual linear progress bar that functions as a countdown or forward timer
- You require start, stop, and restart controls managed from a parent widget
Skip it when
- You need a circular timer or countdown visualization
- You require complex time scheduling or background time tracking
Strengths
- Simple and lightweight widget for visual timers
- Supports external control via LinearTimerController
- Allows callbacks when the timer ends
Weaknesses
- Controller requires manual disposal and a TickerProvider
- Limited to linear progress indicator styles
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
LinearTimer(
duration: const Duration(seconds: 5),
onTimerEnd: () {
print("timer ended");
},
)Alternatives
Packages that do the same job and could replace linear_timer.
- linear_progress_bar
Customizable progress indicators, gauges, circular percent indicators, and dots in Flutter.
62Compare - capped_progress_indicator
Modified linear and circular progress indicators with customizable corner radius and stroke cap.
46Compare - percent_indicator
Circular, linear, and multi-segment percentage progress indicator widgets for Flutter.
67Compare - square_progress_indicator
Fully customizable square or rectangle progress indicators.
53Compare