Grid Paper

Overview
Grid Paper widget draws a rectilinear grid of lines one pixel wide. The Grid's origin is at the top left corner of the child widget. The grid is always drawn on the child widget.
Use Cases
- Visualize your layout using Gridlines.
- Draw Grid over other Layout widgets like Stack or Container.
Properties
- Set the
Colorof the grid lines. - An
intervalis the distance between the primary lines in the grid, in logical pixels. Usually given 100 logical pixels. - A
Divisionis the number of major divisions within each primary grid cell. - A
Sub Divisionis the number of minor divisions within each major division including the major division itself. interval= 100.0,divisions= 2, andsubdivisions= 5 creates a widget that draws a rectilinear grid of 1-pixel-wide lines.