clock_widget 0.0.2 copy "clock_widget: ^0.0.2" to clipboard
clock_widget: ^0.0.2 copied to clipboard

A flutter package to displays a clock widget with real time.

Features #

  • Display an analog clock and a digital clock in UI.
  • Analog clock includes markers for 12, 3, 6, and 9 positions.
  • Digital clock is updated in real-time using a stream service.

Demo #

gifclock

Usage #

Installation #

Add clock_widget to your pubspec.yaml file:

dependencies:
  clock_widget: ^0.0.2 # Use the latest version

Import #

import 'package:flutter/material.dart';
import 'package:clock_widget/clock_widget.dart';

Clockwidget implementation #

To show the clock widgets, use the ClockWidget() method:

// Display an analog clock
ClockWidget(
  clockType: ClockType.analog,
  // Prop to customize the background color
  bgColor: Colors.white,
),

// Display a digital clock
ClockWidget(
  clockType: ClockType.digital,
  // Prop to customize the background color
  bgColor: Colors.white,
),
1
likes
0
pub points
42%
popularity

Publisher

verified publisheradarsh7.dev

A flutter package to displays a clock widget with real time.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on clock_widget