Skip to content
pubscout

analog_clock

0.1.1, released 4 years ago by an unverified publisher

A customizable analog clock widget for Flutter.

WASM-ready
$ flutter pub add analog_clock
Source repository

What it does

Displays an analog clock with optional live updates and custom datetime. Offers extensive visual customization such as colors, numbers, ticks, and size. Works on all Flutter platforms.

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

Use it when

  • You need an analog clock UI in a Flutter app
  • You want live time updates with custom styling
  • You require a lightweight, pure‑Flutter solution

Skip it when

  • You only need a digital clock
  • You need advanced time‑zone or scheduling logic
  • You require extensive testing or accessibility features

Strengths

  • Highly customizable appearance
  • Live updating and manual datetime support
  • Null‑safety and cross‑platform support

Weaknesses

  • Only provides analog display, no digital alternative
  • Limited feature set beyond clock rendering
  • No built‑in tests or extensive documentation

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:analog_clock/analog_clock.dart';

AnalogClock(
  decoration: BoxDecoration(
    border: Border.all(width: 2.0, color: Colors.black),
    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 analog_clock.