schematics library
Classes
- AxesScale
- Represents the scale of axes with x, y, and opening scales.
-
Block<
T extends Object> -
Block represents a schematic block with specific dimensions, color, and optional labels.
where type
T
is the unique identifier for the block. - BlockAlignment
- Class representing the alignment of a block.
- BlockArcOpening
- Represents an opening with an arc in a block,
-
BlockArea<
T extends Object> - Represents a layout area for a block in the schematic.
-
Grid<
T extends Object> -
A generic grid class that holds a 2D list of objects of type
T
. - GridCell
- Represents a cell in a grid with a specific row and column.
- Schema
- A widget that displays a schema with blocks A widget that displays a schema with blocks.
- SchemaConfiguration
- Configuration class for the schema.
- SchemaSize
- Represents the size of a schema with cell size and opening radius.
Enums
- HideFenceBorder
- Enum representing which sides of the block's border should be hidden.
- LayoutDirection
- Represents the layout direction of the schematic.
- XEdgeAlignment
- Enum representing the horizontal edge alignment.
- YEdgeAlignment
- Enum representing the vertical edge alignment.
Extensions
- BlockArcUtilsX on BlockArcOpening
- BlockEdgeAlignmentX on BlockAlignment
- Extension on BlockAlignment to provide additional alignment functionality.
-
BlockLayouts
on List<
BlockArea< Object> > - Extension on List
- BlockOffsetUtilsX on Offset
- Extension on Offset to provide additional functionality for BlockOpening.
Constants
- kDefaultAxesScale → const AxesScale
- kDefaultSchemaSize → const SchemaSize
Typedefs
-
BlockAreaPointEvent
= ({BlockArea<
Object> blockArea, Offset globalPosition, Offset localPosition}) - Block pointer event record
- BlockAreaVoidCallback = void Function(BlockAreaPointEvent areaPointEvent)
- Callback function type for block tap.
-
BlockLayoutCallback
= void Function(List<
BlockArea< areas)Object> > - Callback function type for block layout.
- BlockLayoutOpening = ({Offset end, Offset start})
- opening for a block area defined by a start(0, 0) and end offset(maxWidth, maxHeight).
- BlockOpening = ({Offset offset, double? openingSize})
- Represents an opening in a block.
-
GridCallback
= void Function(Grid<
int> grid) - Callback function type for grid updates.
- InitiateAxesScaleCallback = AxesScale Function(BoxConstraints blockAreaConstraints)
- Callback function type for initiating axes scale.
-
Vector2D<
T extends Object> = List< List< T> >