TimeRangePicker class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TimeRangePicker
Constructors
-
TimeRangePicker({Key? key, TimeOfDay? start, TimeOfDay? end, TimeRange? disabledTime, void onStartChange(TimeOfDay)?, void onEndChange(TimeOfDay)?, String fromText = "From", String toText = "To", Duration interval = const Duration(minutes: 5), double padding = 36, double strokeWidth = 12, double handlerRadius = 12, Color? strokeColor, Color? handlerColor, Color? selectedColor, Color? backgroundColor, Color? disabledColor, PaintingStyle paintingStyle = PaintingStyle.stroke, Widget? backgroundWidget, int ticks = 0, dynamic ticksLength, double ticksWidth = 1, double ticksOffset = 0, Color ticksColor = Colors.white, bool snap = false, List<
ClockLabel> ? labels, double labelOffset = 20, bool rotateLabels = true, bool autoAdjustLabels = true, TextStyle? labelStyle, TextStyle? timeTextStyle, TextStyle? activeTimeTextStyle, double clockRotation = 0, Duration? maxDuration, Duration minDuration = const Duration(minutes: 30), bool use24HourFormat = true, bool hideTimes = false, bool hideButtons = false})
Properties
- activeTimeTextStyle → TextStyle?
-
final
- autoAdjustLabels → bool
-
final
- backgroundColor → Color?
-
final
- backgroundWidget → Widget?
-
final
- clockRotation → double
-
final
- disabledColor → Color?
-
final
- disabledTime → TimeRange?
-
final
- end → TimeOfDay?
-
final
- fromText → String
-
final
- handlerColor → Color?
-
final
- handlerRadius → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideButtons → bool
-
final
- hideTimes → bool
-
final
- interval → Duration
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelOffset → double
-
final
-
labels
→ List<
ClockLabel> ? -
final
- labelStyle → TextStyle?
-
final
- maxDuration → Duration?
-
final
- minDuration → Duration
-
final
- onEndChange → (void Function(TimeOfDay)?)
-
final
- onStartChange → (void Function(TimeOfDay)?)
-
final
- padding → double
-
final
- paintingStyle → PaintingStyle
-
final
- rotateLabels → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedColor → Color?
-
final
- snap → bool
-
final
- start → TimeOfDay?
-
final
- strokeColor → Color?
-
final
- strokeWidth → double
-
final
- ticks → int
-
final
- ticksColor → Color
-
final
- ticksLength → double
-
final
- ticksOffset → double
-
final
- ticksWidth → double
-
final
- timeTextStyle → TextStyle?
-
final
- toText → String
-
final
- use24HourFormat → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → TimeRangePickerState -
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.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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.
inherited