clock_widget 0.0.3 copy "clock_widget: ^0.0.3" to clipboard
clock_widget: ^0.0.3 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 #

Usage #

Installation #

Add clock_widget to your pubspec.yaml file:

dependencies:
  clock_widget: ^0.0.3 # 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
160
pub points
42%
popularity

Publisher

verified publisheradarsh7.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, intl

More

Packages that depend on clock_widget