Skip to content
pubscout

one_clock

2.0.3, released 10 months ago by complexcoders.com

Flutter analog and digital clock plugin for custom clock widgets.

WASM-ready
$ flutter pub add one_clock
Source repository

What it does

Provides customizable analog and digital clock widgets for Flutter applications. Supports live updating, multiple styling parameters, and date/time formatting options.

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

Use it when

  • You need to display a customizable analog or digital clock in your UI.
  • You want live-updating clocks with custom hand, number, and decoration colors.

Skip it when

  • You need complex date/time utilities or parsing rather than UI clock widgets.

Strengths

  • Supports both analog and digital clock interfaces
  • Fully customizable appearance including colors, decorations, and numbers
  • Cross-platform support for Android, iOS, web, Windows, macOS, and Linux

Weaknesses

  • Limited to clock display widgets rather than full time management or calendar solutions

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
AnalogClock(
  decoration: BoxDecoration(
    border: Border.all(width: 2.0, color: Colors.black),
    color: Colors.transparent,
    shape: BoxShape.circle),
  width: 150.0,
  isLive: true,
  hourHandColor: Colors.black,
  minuteHandColor: Colors.black,
  showSecondHand: false,
  numberColor: Colors.black87,
  showNumbers: true,
  showAllNumbers: false,
  textScaleFactor: 1.4,
  showTicks: false,
  showDigitalClock: false,
  datetime: DateTime(2019, 1, 1, 9, 12, 15),
)

Alternatives

Packages that do the same job and could replace one_clock.

Works with

Packages commonly used together with one_clock: ones it builds on, ones built on it, and its own family.