GaugeTitle class

Title of the gauge.

Takes a string and displays it as the title of the gauge. By default, the text of the gauge will be horizontally center aligned.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
           title: GaugeTitle(
                   text: 'Gauge Title',
                   textStyle: TextStyle(
                                color: Colors.red,
                                fontSize: 12,
                                fontStyle: FontStyle.normal,
                                fontWeight: FontWeight.w400,
                                fontFamily: 'Roboto'
                              ))
       ));
}
Annotations

Constructors

GaugeTitle({required String text, TextStyle? textStyle, GaugeAlignment alignment = GaugeAlignment.center, Color? borderColor, double borderWidth = 0, Color? backgroundColor})
Creates the gauge title with default or required properties.
const

Properties

alignment GaugeAlignment
How the title text should be aligned horizontally.
final
backgroundColor Color?
The color that fills the title of the gauge.
final
borderColor Color?
The color that fills the border with the title of the gauge.
final
borderWidth double
Specifies the border width of the gauge title.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Text to be displayed as gauge title.
final
textStyle TextStyle?
The style to use for the gauge title text.
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.
override