RotaryDialThemeData class
A class that contains the theme data for the RotaryDial.
This class is used to define the visual appearance of the rotary dial widget. It contains several properties, such as rotaryDialColor, spinnerColor, dialColor, and numberColor, that determine the color of different parts of the RotaryDial.
To create an instance of this class, use the RotaryDialThemeData constructor and pass in the desired values for the properties. If a property is not specified, a default value will be used instead.
Example:
RotaryDialThemeData(
rotaryDialColor: Colors.blue,
spinnerColor: Colors.white,
dialColor: Colors.grey,
numberColor: Colors.white,
pointColor: Colors.white,
margin: EdgeInsets.only(top: 16.0),
dialPadding: 12.0,
dialBorderRadius: 30.0,
)
- Annotations
Constructors
- RotaryDialThemeData.new({Color? rotaryDialColor, Color? spinnerColor, Color? dialColor, Color? numberColor, EdgeInsets? margin, double? dialBorderRadius})
-
Creates a RotaryDialThemeData object.
factory
Properties
- dialBorderRadius → double
-
The border radius of the dial numbers.
Defaults to
RotaryDimensions.dialNumberRadius
.final - dialColor → Color
-
The color of the dial numbers.
Defaults to
RotaryColors.mainColor
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- margin → EdgeInsets
-
The margin around the rotary dial.
Defaults to [EdgeInsets.only(
left:
RotaryDimensions.large
, right:RotaryDimensions.large
, )].final - numberColor → Color
-
The color of the selected dial number.
Defaults to
RotaryColors.white
.final - rotaryDialColor → Color
-
The background color of the rotary dial.
Defaults to
RotaryColors.mainColorDark
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spinnerColor → Color
-
The color of the spinner that appears when the dial is rotated.
Defaults to
RotaryColors.white
.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