Skip to main content

ArcLabelDecorator

insideLabelStyle

TypeDefault
LabelStyleLabelStyle(fontSize: 12,color: Colors.white)

Configures [TextStyleSpec] for labels placed inside the arcs.


outsideLabelStyle

TypeDefault
LabelStyleLabelStyle(fontSize: 12,color: Colors.white)

Configures [TextStyleSpec] for labels placed outside the arcs.


leaderLineStyle

TypeDefault
ArcLabelLeaderLineStyleArcLabelLeaderLineStyle(color: Colors.black,length: 20.0,thickness: 1.0)

Configures [ArcLabelLeaderLineStyleSpec] for leader lines for labels placed outside the arcs.


labelPosition

TypeDefault
ArcLabelPositionArcLabelPosition.auto

Configures where to place the label relative to the arcs.

enum ArcLabelPosition {
/// Automatically try to place the label inside the arc first and place it on
/// the outside of the space available outside the arc is greater than space
/// available inside the arc.
auto,

/// Always place label on the outside.
outside,

/// Always place label on the inside.
inside
}

labelPadding

TypeDefault
int5

Space before and after the label text.


showLeaderLines

TypeDefault
booltrue

Whether or not to draw leader lines for labels placed outside the arcs.