LabelConfiguration class
Allows customization of the label appearing above the thumb.
Constructors
- LabelConfiguration.new({bool useCustomLabel = true, bool showDefaultLabel = false, Color backgroundColor = Colors.black, TextStyle textStyle = const TextStyle(fontSize: 12.0, color: Colors.white), double? verticalOffset, double horizontalTextOffset = 0, double width = 40, double height = 24, double radius = 5, String? imagePath, double imageHorizontalOffset = 0})
-
const
Properties
- backgroundColor → Color
-
Default background color is Colors.black.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Default height is 24.
final
- horizontalTextOffset → double
-
Horizontal text offset allows to move the text horizontally. Default is 0.
final
- imageHorizontalOffset → double
-
Offset to move the image horizontally in the label. Default is 0.
final
- imagePath → String?
-
Path to an image to display in the label. Default is null.
final
- radius → double
-
Default radius is 5.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDefaultLabel → bool
-
Whether to show the original label that appears above the thumb when pressed.
final
- textStyle → TextStyle
-
Default text style is TextStyle(fontSize: 12.0, color: Colors.white).
final
- useCustomLabel → bool
-
Whether to use the custom label shape or not. Default is true, using the custom label.
final
- verticalOffset → double?
-
Vertical offset represent the offset between the center of the thumb and the center of the label. Default is thumbConfig.height * 2.
final
- width → double
-
Default width is 40.
final
Methods
-
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