Widgets

PieChartSection

PieChartSection

PieChartSection control. Build it with the pie_chart_section helper.

Example

pie_chart_section(
  value: "Sample",
  title: text("Title"),
  color: :blue_600
)

Properties

  • value — The control's current value.
  • title — The control shown as the title.
  • color — Foreground color.
  • radius — Sets the radius property.
  • title_style — Title style.
  • badge_widget — Sets the badge widget property.
  • badge_position_percentage_offset — Sets the badge position percentage offset property.

Reference

  • Family: materials
  • Widget type: piechartsection
  • Helpers: pie_chart_section, piechartsection