GridPaper class Null safety

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
read / write, inherited
canSpan bool
read-only, inherited
child Widget?
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
hasMoreWidgets bool
read-only, inherited
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.
read-only, inherited
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

debugPaint(Context context) → void
@protected, 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 non-existent 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
@protected, inherited
restoreContext(covariant WidgetContext context) → void
Apply the context for next layout
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
PdfColor.fromInt(0xffc3e8f3)