Arc
Examples#
See these.
Arc
#
Bases: Shape
Draws an arc scaled to fit inside the given rectangle.
It starts from start_angle
radians around the oval up to start_angle
+
sweep_angle
radians around the oval, with zero radians being the point on
the right hand side of the oval that crosses the horizontal line that
intersects the center of the rectangle and with positive angles going
clockwise around the oval. If use_center
is True
, the arc is closed back
to the center, forming a circle sector. Otherwise, the arc is not closed,
forming a circle segment.
https://api.flutter.dev/flutter/dart-ui/Canvas/drawArc.html
page
#
The page (of type Page
or PageView
) to which this control belongs to.
parent
#
parent: BaseControl | None
The direct ancestor(parent) of this control.
It defaults to None
and will only have a value when this control is mounted (added to the page tree).
The Page
control (which is the root of the tree) is an exception - it always has parent=None
.
use_center
#
use_center: bool = False
Whether this arc is closed back to the center, forming a
circle sector. If not closed (False
), this arc forms a circle segment.
before_update
#
This method is called every time when this control is being updated.
Note
Make sure not to call/request an update()
here.