FlutterAnalogClock class

A analog clock.

Inheritance

Constructors

FlutterAnalogClock({DateTime dateTime, Color dialPlateColor = Colors.white, Color hourHandColor = Colors.black, Color minuteHandColor = Colors.black, Color secondHandColor = Colors.black, Color numberColor = Colors.black, Color borderColor = Colors.black, Color tickColor = Colors.black, Color centerPointColor = Colors.black, bool showBorder = true, bool showTicks = true, bool showMinuteHand = true, bool showSecondHand = true, bool showNumber = true, double borderWidth, double hourNumberScale = 1.0, List<String> hourNumbers = FlutterAnalogClockPainter.defaultHourNumbers, bool isLive = true, double width = double.infinity, double height = double.infinity, BoxDecoration decoration = const BoxDecoration(), Widget child, Key key})
const
FlutterAnalogClock.dark({DateTime dateTime, Color dialPlateColor = Colors.black, Color hourHandColor = Colors.grey, Color minuteHandColor = Colors.grey, Color secondHandColor = Colors.grey, Color numberColor = Colors.grey, Color borderColor = Colors.black, Color tickColor = Colors.grey, Color centerPointColor = Colors.grey, bool showBorder = true, bool showTicks = true, bool showMinuteHand = true, bool showSecondHand = true, bool showNumber = true, double borderWidth, double hourNumberScale = 1.0, List<String> hourNumbers = FlutterAnalogClockPainter.defaultHourNumbers, bool isLive = true, double width = double.infinity, double height = double.infinity, BoxDecoration decoration = const BoxDecoration(), Widget child, Key key})
const

Properties

borderColor Color
final
borderWidth double
final
centerPointColor Color
final
child Widget
final
dateTime DateTime
final
decoration BoxDecoration
final
dialPlateColor Color
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
height double
final
hourHandColor Color
final
hourNumbers List<String>
final
hourNumberScale double
final
isLive bool
final
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
minuteHandColor Color
final
numberColor Color
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secondHandColor Color
final
showBorder bool
final
showMinuteHand bool
final
showNumber bool
final
showSecondHand bool
final
showTicks bool
final
tickColor Color
final
width double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() → _FlutterAnalogClockState
Creates the mutable state for this widget at a given location in the tree. [...]
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
inherited
toStringDeep({String prefixLineOne = '', String prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited