Skip to content
pubscout

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.

WASM-ready
$ flutter pub add linear_timer
Source repository

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.