responsive_layout_grid library
Classes
- CellPosition
- A ResponsiveLayoutCell has a CellPosition. There are 2 types:
- CellPositionNextColumn
- CellPositionNextRow
- ColumnSpan
- A ColumnSpan tells the DefaultLayoutFactory how many columns a ResponsiveLayoutCell may span.
- DefaultLayoutFactory
- Layout
- Contains the cells without margins and gutters
- LayoutCell
- LayoutCellParentData
- LayoutDimensions
- Contains all the dimensions needed to layout a ResponsiveLayoutGrid It calculates the number of columns and width of these columns in the available with in the ResponsiveLayoutGrid
- LayoutRow
- Holds ResponsiveLayoutCells that belong to the same row but do not have a final position or column span
- MaterialMeasurement
- Distances in flutter are in Density-independent Pixels
- RenderCell
- Wrapper for a cell RenderBox containing additional information
- RenderResponsiveLayout
- Renders the ResponsiveLayoutGrid
- RenderResponsiveLayoutBox
-
RenderBox for RenderResponsiveLayout.
It does all the positioning of the
LayoutCells
- RenderRow
- ResponsiveLayoutCell
- You can wrap your cell Widgets with a ResponsiveLayoutCell when you are using the DefaultLayoutFactory, so that you can provide the following information of the cell Widget (the child):
- ResponsiveLayoutFactory
-
The ResponsiveLayoutFactory is responsible for creating a Layout.
It orders the
children
into a Layout with a given number of columns. - ResponsiveLayoutGrid
- The ResponsiveLayoutGrid has the following constructor parameters:
- RowHeight
- The RowHeight is used as a parameter in CellPosition.nextRow. It defines the height the following row.
- RowHeightExpanded
- The row will get the remaining available height, much like the Expanded Widget inside a Row or Column
- RowHeightHighestCell
- The row will get the height of the highest ResponsiveLayoutCell in the row, respecting minHeight and maxHeight.
Enums
- RowAlignment
- The RowAlignment can be set when a CellPosition.nextRow is used in a ResponsiveLayoutCell. It can be one of the following values: