PdfChartSection class
A section containing multiple charts arranged in a grid.
Example with section title icon and divider:
PdfChartSection(
order: 3,
titleConfig: PdfSectionTitleConfig(
text: 'Sales Analytics',
fontSize: 14,
icon: PdfSectionTitleIconConfig(
iconData: Icons.bar_chart,
color: Colors.orange,
size: 16,
),
divider: PdfSectionTitleDividerConfig(
show: true,
height: 1,
color: PdfColors.orange400,
),
),
items: [...],
)
- Inheritance
-
- Object
- PdfSection
- PdfChartSection
Constructors
-
PdfChartSection({required int order, required List<
PdfChartItem> items, double horizontalSpacing = 8, double verticalSpacing = 8, String? sectionTitle, double sectionTitleFontSize = 12, PdfColor? sectionTitleColor, PdfSectionTitleConfig? titleConfig, double bottomPadding = 16, bool setNewPage = false}) -
Creates a new chart section.
const
Properties
- bottomPadding → double
-
Padding below the section.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalSpacing → double
-
Horizontal spacing between chart items.
final
-
items
→ List<
PdfChartItem> -
The chart items to display.
final
- order → int
-
The order in which this section should be rendered.
Lower numbers are rendered first.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sectionTitle → String?
-
Optional title for the chart section.
final
- sectionTitleColor → PdfColor?
-
Color for the section title.
final
- sectionTitleFontSize → double
-
Font size for the section title.
final
- setNewPage → bool
-
Whether to start this chart section on a new page.
final
- titleConfig → PdfSectionTitleConfig?
-
Complete title configuration with icon and divider support.
final
- verticalSpacing → double
-
Vertical spacing between chart rows.
final
Methods
-
build(
double availableWidth, Context context) → Widget -
Builds the PDF widget for this section.
override
-
buildMultiple(
double availableWidth, Context context) → List< Widget> -
Builds multiple widgets for proper multi-page pagination.
override
-
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