TimePickerHandlerDecoration class
used to decorate our init or end handler of time picker
Constructors
- TimePickerHandlerDecoration({Color color = Colors.black, BoxShape shape = BoxShape.circle, BoxShadow? shadow, Icon? icon, double radius = 8, Border? border, double handlerOutterRadius = 12, bool useRoundedPickerCap = false, bool showHandler = true, bool showHandlerOutter = false})
- Creates a TimePickerHandlerDecoration.
Properties
- border → Border?
-
Helps to define which border you want to apply to the handler shape
final
- color → Color
-
handler default color
final
- handlerOutterRadius → double
-
if a value is provided it must be bigger than this.radius otherwise it
will not draw the expected effect the outter handler will only get draw
when this.showHandlerOutter = true.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Icon?
-
The icon to display on top of the handler
if The Icon.size is not provided the default is 30
final
- radius → double
-
default handler radius = 8
when using shape = rectangle, the rect will get generated from Rect.fromCircle
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadow → BoxShadow?
-
optional shadow which will get apply to the handler, if not provided there
handler will get draw without shadow
final
- shape → BoxShape
-
shape defines the handler default shape could be a square or circle
default shape is circle
final
- showHandler → bool
-
used to show the handler on time picker
Default Value:
true
final - showHandlerOutter → bool
-
draw a outter container for the handler, the outter shape could be either
a rectangle or circle the shape will always match the default handler
shape which is control by using the this.shape
default value is always false unless defined
if set to true then the handlerOutterRadius also needs to get set unless
you want to use the default value
showHandlerOutter enable then both this.shadow and this.icon are
expected to be null.
we are keeping this as backwards compatibility since similar effect could
be generate by using
final
- useRoundedPickerCap → bool
-
define the stroke cap for the handler on time picker
Default Value:
false
If true then StrokeCap.round used and if false then StrokeCap.butt usedfinal
Methods
-
copyWith(
{BoxShape? shape, Icon? icon, Color? color, BoxShadow? shadow, double? radius, Border? border, double? handlerOutterRadius, bool? showRoundedCapInSelection}) → TimePickerHandlerDecoration - Creates a copy of the TimePickerHandlerDecoration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas, Offset center) → void - paint
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited