flutter_analog_clock 0.1.1

Flutter Android iOS web

A simple and fully customizable flutter analog clock widget.

Flutter Analog Clock #

pub package

A simple and fully customizable flutter analog clock widget.

analog-clock

Usage #

1. Simple to use #

import 'package:flutter_analog_clock/flutter_analog_clock.dart';
import 'package:flutter/widgets.dart';

class ClockDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return FlutterAnalogClock();
  }
}

2. Customize to use #

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

class ClockDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return FlutterAnalogClock(
      dateTime: DateTime.now(),
      dialPlateColor: Colors.white,
      hourHandColor: Colors.black,
      minuteHandColor: Colors.black,
      secondHandColor: Colors.black,
      numberColor: Colors.black,
      borderColor: Colors.black,
      tickColor: Colors.black,
      centerPointColor: Colors.black,
      showBorder: true,
      showTicks: true,
      showMinuteHand: true,
      showSecondHand: true,
      showNumber: true,
      borderWidth: 8.0,
      hourNumberScale: .10,
      hourNumbers: ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII'],
      isLive: true,
      width: 200.0,
      height: 200.0,
      decoration: const BoxDecoration(),
      child: Text('Clock'),
    );
  }
}
3
likes
100
pub points
66%
popularity

A simple and fully customizable flutter analog clock widget.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

conghaonet@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_analog_clock