GridPainter class
A custom painter that draws a grid on a Neumorphic surface.
This class extends NeumorphicShapePainter to provide a grid painting functionality, which can be used to create a grid-like appearance on Neumorphic surfaces.
- Inheritance
-
- Object
- NeumorphicShapePainter
- GridPainter
Constructors
- GridPainter.new({required Color color, int columns = 1, int rows = 1})
- Creates a GridPainter.
Properties
- color → Color
-
The color of the grid.
final
- columns → int
-
The number of columns in the grid.
final
- gridPaint → Paint
-
The paint object used to draw the grid.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- innerPath ↔ Path
-
The inner path of the shape.
getter/setter pairinherited
- innerRect ↔ Rect
-
The inner rectangle of the shape.
getter/setter pairinherited
- outerPath ↔ Path
-
The outer path of the shape.
getter/setter pairinherited
- outerRect ↔ Rect
-
The outer rectangle of the shape.
getter/setter pairinherited
- rows → int
-
The number of rows in the grid.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ShapeBorder
-
The shape of the Neumorphic element.
finalinherited
- strokeWidth → double
-
The width of the stroke for the shape.
finalinherited
Methods
-
calculateShape(
Offset offset, Size size) → void -
Calculates the shape of the Neumorphic element.
inherited
-
convertRadiusToSigma(
double radius) → double -
Converts a radius value to a sigma value.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paintSurface(
Canvas canvas) → void - Paints the surface of the chart grid onto the given canvas.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited