TimePickerClockNumberDecoration class

used to decorate the TimePicker widgets clock numbers.

Constructors

TimePickerClockNumberDecoration({ClockTimeFormat clockTimeFormat = ClockTimeFormat.twentyFourHours, ClockIncrementTimeFormat clockIncrementTimeFormat = ClockIncrementTimeFormat.fiveMin, bool showNumberIndicators = true, double textScaleFactor = 0.7, double scaleFactor = 0.9, double positionFactor = 0.42, TextStyle? textStyle, double defaultFontSize = 18, Color defaultTextColor = Colors.black, ClockIncrementHourFormat clockIncrementHourFormat = ClockIncrementHourFormat.six, int? endNumber})
Creates a TimePickerClockNumberDecoration.

Properties

clockIncrementHourFormat ClockIncrementHourFormat
Defines the clock hour increment count default value: ClockIncrementHourFormat.six
getter/setter pair
clockIncrementTimeFormat ClockIncrementTimeFormat
Defines the clock time increment format default value: ClockIncrementTimeFormat.fiveMin
getter/setter pair
clockTimeFormat ClockTimeFormat
Defines the clock time format either twelveHours or twentyFourHours default value: ClockTimeFormat.twentyFourHours
getter/setter pair
defaultFontSize double
Optional, defines the font size to use when the a Style is not define, default value: 18
getter/setter pair
defaultTextColor Color
Optional, defines the main color to get use when the a Style is not define, default value: Colors.black
getter/setter pair
endNumber int?
this number is for customize the last number displayed in clock. eg: if endNumber == null, with ClockIncrementHourFormat.twentyFour we will show 24 for the last item eg: if endNumber == 0, we will show 0 instead of 24 default value: null
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
positionFactor double
play with this number to define the position of the clock number default value: 0.42 In this positionFactor, 0 denotes the closest point to the center, while 1 represents the farthest point from the center
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleFactor double
play with this number to define the scale of the clock number default value: 0.9 Depends on font size and textScaleFactor
final
showNumberIndicators bool
Set to true to enable clock numbers default value: false
final
textScaleFactor double
play with this number to define reduce the font size of the clock number default value: 0.7
final
textStyle TextStyle?
Optional Style to be applied to the the clock number in the clock when clock is enable if not need then set color to transparent default value: NULL See also:
getter/setter pair

Methods

getDefaultTextStyle() TextStyle
this method will be call when textStyle is not defined defaultFontSize Optional, defines the font size to use when the a Style is not define, default value: 18 defaultTextColor Optional, defines the main color to get use when the a Style is not define, default value: Colors.black
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited