ShadTimePickerTheme class
Constructors
-
ShadTimePickerTheme({bool canMerge = true, Axis? axis, double? spacing, double? runSpacing, bool? jumpToNextFieldWhenFilled, WrapAlignment? alignment, WrapAlignment? runAlignment, WrapCrossAlignment? crossAxisAlignment, ShadDayPeriod? initialDayPeriod, double? periodHeight, double? periodMinWidth, double? gap, TextStyle? style, TextStyle? placeholderStyle, TextStyle? labelStyle, double? fieldWidth, EdgeInsetsGeometry? fieldPadding, ShadDecoration? fieldDecoration, ShadDecoration? periodDecoration, Widget? hourLabel, Widget? minuteLabel, Widget? secondLabel, Widget? hourPlaceholder, Widget? minutePlaceholder, Widget? secondPlaceholder, Widget? periodLabel, Widget? periodPlaceholder})
-
const
Properties
-
alignment
→ WrapAlignment?
-
The alignment of the fields in the picker. Defaults to
WrapAlignment.center.
final
-
axis
→ Axis?
-
The axis along which the fields are laid out. Defaults to
horizontal.
final
-
canMerge
→ bool
-
no setter
-
crossAxisAlignment
→ WrapCrossAlignment?
-
The alignment of the fields in the picker. Defaults to
WrapCrossAlignment.center.
final
-
fieldDecoration
→ ShadDecoration?
-
The decoration of the field, defaults to
final
-
fieldPadding
→ EdgeInsetsGeometry?
-
The padding of the field, defaults to
const EdgeInsets.symmetric(horizontal: 12, vertical: 8).
final
-
fieldWidth
→ double?
-
The width of the field, defaults to
48.
final
-
gap
→ double?
-
The gap between the label and the field in the picker. Defaults to
4.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hourLabel
→ Widget?
-
The widget to display as the label for the hour field.
final
-
hourPlaceholder
→ Widget?
-
The widget to display as the placeholder for the hour field, defaults to
Text('00').
final
-
initialDayPeriod
→ ShadDayPeriod?
-
The initial day period to show in the picker, defaults to
ShadDayPeriod.am.
final
-
jumpToNextFieldWhenFilled
→ bool?
-
Whether the focus should jump to the next field when the current field is
filled. Defaults to
true.
final
-
labelStyle
→ TextStyle?
-
The style of the label. Defaults to
theme.textTheme.small.copyWith(fontSize: 12)
final
-
minuteLabel
→ Widget?
-
The widget to display as the label for the minute field.
final
-
minutePlaceholder
→ Widget?
-
The widget to display as the placeholder for the minute field, defaults to
Text('00').
final
-
periodDecoration
→ ShadDecoration?
-
The decoration of the field, defaults to
null.
final
-
periodHeight
→ double?
-
The height of the period field, defaults to
42.
final
-
periodLabel
→ Widget?
-
The widget to display as the label for the period field.
final
-
periodMinWidth
→ double?
-
The min width of the period field, defaults to
65.
final
-
periodPlaceholder
→ Widget?
-
The widget to display as the placeholder for the period field, defaults
to
null.
final
-
placeholderStyle
→ TextStyle?
-
The style of the placeholder. Defaults to
final
-
runAlignment
→ WrapAlignment?
-
The alignment of the fields in the picker. Defaults to
WrapAlignment.center.
final
-
runSpacing
→ double?
-
The run spacing between the fields in the picker. Defaults to
4.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
secondLabel
→ Widget?
-
The widget to display as the label for the second field.
final
-
secondPlaceholder
→ Widget?
-
The widget to display as the placeholder for the second field, defaults to
Text('00').
final
-
spacing
→ double?
-
The spacing between the fields in the picker. Defaults to
8.
final
-
style
→ TextStyle?
-
The style of the label. Defaults to
final
Methods
-
copyWith({Axis? axis, double? spacing, double? runSpacing, bool? jumpToNextFieldWhenFilled, WrapAlignment? alignment, WrapAlignment? runAlignment, WrapCrossAlignment? crossAxisAlignment, ShadDayPeriod? initialDayPeriod, double? periodHeight, double? periodMinWidth, double? gap, TextStyle? style, TextStyle? placeholderStyle, TextStyle? labelStyle, double? fieldWidth, EdgeInsetsGeometry? fieldPadding, ShadDecoration? fieldDecoration, ShadDecoration? periodDecoration, Widget? hourLabel, Widget? minuteLabel, Widget? secondLabel, Widget? periodLabel, Widget? hourPlaceholder, Widget? minutePlaceholder, Widget? secondPlaceholder, Widget? periodPlaceholder})
→ ShadTimePickerTheme
-
inherited
-
merge(ShadTimePickerTheme? other)
→ ShadTimePickerTheme
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited