Skip to content
pubscout

custom_timer

0.2.3, released 4 years ago by an unverified publisher

A customizable timer widget with millisecond support and a controller.

WASM-ready
$ flutter pub add custom_timer
Source repository

What it does

Provides a customizable timer widget and controller to handle count up or count down scenarios. Supports millisecond precision, custom builders, and runtime manipulations like start, pause, reset, jump, and interval changes.

AI-written summary of version 0.2.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a custom countdown or count-up timer widget with flexible formatting.
  • You require runtime control over a timer such as pausing, starting, and jumping to specific durations.

Skip it when

  • You need background services or alarms that persist when the app is terminated.

Strengths

  • Includes a robust controller for timer manipulation (start, pause, reset, finish, add, subtract, jumpTo).
  • Supports millisecond precision and customizable intervals.
  • Provides a clean custom builder pattern for UI rendering.

Weaknesses

  • Requires SingleTickerProviderStateMixin in the parent widget for ticker provision.
  • Lacks background persistence out of the box.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
CustomTimer(
  controller: _controller,
  builder: (state, time) {
    return Text(
      "${time.hours}:${time.minutes}:${time.seconds}.${time.milliseconds}",
      style: TextStyle(fontSize: 24.0)
    );
  }
)

Alternatives

Packages that do the same job and could replace custom_timer.

  • splashscreen

    A customizable, theme‑aware splash screen widget with timer or future navigation and entrance animations.

  • timer_button

    A Flutter button widget that becomes enabled after a designated time interval.

  • flutter_context_menu

    Create and display customizable context menus with hierarchical submenus in Flutter apps.

  • kf_drawer

    A customizable animated side drawer for Flutter with controller, gesture, RTL, and multi-platform support.