v0.1.1analog_clock
Flutter 模拟时钟插件。
89喜欢 3790近 30 天下载130Pub 分数
AndroidiOSWebmacOSWindowsLinux
⌚️适用于 Flutter 的模拟时钟小部件 ⏰
{"sdk":"flutter"}{"sdk":"flutter"}以下为英文项目原文快照,最新内容请访问 GitHub。
Clean and fully customizable analog clock widget.
Flutter Analog Clock Screenshot
In your pubspec.yaml file within your Flutter Project:
dependencies:
analog_clock: ^0.1.0
import 'package:analog_clock/analog_clock.dart';
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),
);
Flutter Analog Clock Parameters
Demo app can be found in the example/ folder.