GridPaper class

A widget that draws a rectilinear grid of lines. The grid is drawn over the child widget.

Inheritance

Constructors

GridPaper({PdfColor color = lineColor, double interval = 100, int divisions = 5, int subdivisions = 2, Widget? child})
Creates a widget that draws a rectilinear grid lines.
GridPaper.collegeRuled({EdgeInsets margin = const EdgeInsets.only(top: 1 * PdfPageFormat.inch, bottom: 0.6 * PdfPageFormat.inch, left: 1.25 * PdfPageFormat.inch, right: 0), Widget? child})
GridPaper.engineering({PdfColor color = lineColor, Widget? child})
GridPaper.millimeter({PdfColor color = lineColor, Widget? child})
GridPaper.quad({PdfColor color = lineColor, Widget? child})
GridPaper.seyes({EdgeInsets margin = const EdgeInsets.only(top: 20 * PdfPageFormat.mm, bottom: 10 * PdfPageFormat.mm, left: 36 * PdfPageFormat.mm, right: 0), Widget? child})

Properties

border BoxBorder
final
box PdfRect?
The bounding box of this widget, calculated at layout time
getter/setter pairinherited
canSpan bool
no setterinherited
child Widget?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hasMoreWidgets bool
no setterinherited
horizontalColor PdfColor
The color to draw the horizontal lines in the grid.
final
horizontalDivisions int
The number of major horizontal divisions within each primary grid cell.
final
horizontalInterval double
The distance between the primary horizontal lines in the grid, in logical pixels.
final
horizontalOffset int
final
horizontalSubdivisions int
The number of minor horizontal divisions within each major division, including the major division itself.
final
margin EdgeInsets
The margin to apply to the horizontal and vertical lines
final
opacity double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
final
verticalColor PdfColor
The color to draw the vertical lines in the grid.
final
verticalDivisions int
The number of major vertical divisions within each primary grid cell.
final
verticalInterval double
The distance between the primary vertical lines in the grid, in logical pixels.
final
verticalOffset int
final
verticalSubdivisions int
The number of minor vertical divisions within each major division, including the major division itself.
final

Methods

applyContext(covariant WidgetContext context) → void
Called before relayout to restore the saved state and restart the layout in the same conditions
inherited
cloneContext() WidgetContext
Called after layout to save the state
inherited
debugPaint(Context context) → void
inherited
layout(Context context, BoxConstraints constraints, {bool parentUsesSize = false}) → void
First widget pass to calculate the children layout and bounding box
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Context context) → void
Draw itself and its children, according to the calculated box.offset
override
paintChild(Context context) → void
inherited
restoreContext(covariant WidgetContext context) → void
Apply the context for next page layout. Called before layout to prepare for next page
inherited
saveContext() WidgetContext
Get unmodified mutable context object
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

lineColor → const PdfColor