CustomGaugeConfig class
Configuration class for the CustomGauge widget
Constructors
- CustomGaugeConfig({double size = 200.0, double strokeWidth = 10.0, double indicatorRadius = 8.0, double indicatorStrokeWidth = 5.0, double gapSize = 0.2, bool showCenterText = true, bool showLabels = true, double centerTextFontSize = 32.0, double labelFontSize = 12.0, Color centerTextColor = const Color(0xFF1F2937), Color labelColor = const Color(0xFF6B7280), Color backgroundColor = Colors.white, Duration animationDuration = const Duration(milliseconds: 1000), Curve animationCurve = Curves.easeInOut})
-
const
Properties
- animationCurve → Curve
-
Animation curve for the gauge
final
- animationDuration → Duration
-
Animation duration for the gauge
final
- backgroundColor → Color
-
The background color of the gauge (behind segments)
final
- centerTextColor → Color
-
The color of the center score text
final
- centerTextFontSize → double
-
The font size of the center score text
final
- gapSize → double
-
The gap size between segments (in radians)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indicatorRadius → double
-
The radius of the indicator thumb
final
- indicatorStrokeWidth → double
-
The stroke width of the indicator outline
final
- labelColor → Color
-
The color of the 0 and 100 labels
final
- labelFontSize → double
-
The font size of the 0 and 100 labels
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCenterText → bool
-
Whether to show the center score text
final
- showLabels → bool
-
Whether to show the 0 and 100 labels
final
- size → double
-
The size of the gauge (width and height)
final
- strokeWidth → double
-
The stroke width of the gauge segments
final
Methods
-
copyWith(
{double? size, double? strokeWidth, double? indicatorRadius, double? indicatorStrokeWidth, double? gapSize, bool? showCenterText, bool? showLabels, double? centerTextFontSize, double? labelFontSize, Color? centerTextColor, Color? labelColor, Color? backgroundColor, Duration? animationDuration, Curve? animationCurve}) → CustomGaugeConfig - Creates a copy of this config with the given fields replaced
-
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