FlexGrid<T> class

Inheritance

Constructors

FlexGrid({HeaderBuilder? headerBuilder, required CellBuilder<T> cellBuilder, required LoadingMoreBase<T> source, required int columnsCount, int frozenedColumnsCount = 0, int frozenedRowsCount = 0, LinkScrollController? horizontalController, ScrollController? controller, ScrollPhysics? physics, RowWrapper<T>? rowWrapper, CellStyle? headerStyle, CellStyle? cellStyle, LoadingMoreIndicatorBuilder? indicatorBuilder, ExtendedListDelegate? extendedListDelegate, HeadersBuilder? headersBuilder, Key? key, bool link = false, ScrollPhysics? horizontalPhysics, bool horizontalHighPerformance = false, bool verticalHighPerformance = false, bool showGlowLeading = false, bool showGlowTrailing = true, int frozenedTrailingColumnsCount = 0, bool showHorizontalGlowLeading = false, bool showHorizontalGlowTrailing = false, FooterBuilder? footerBuilder, CellStyle? footerStyle, SliverHeadersBuilder? sliverHeadersBuilder, bool shrinkWrap = false, double? maxWidth, double? cacheExtent})
const

Properties

cacheExtent double?
final
cellBuilder CellBuilder<T>
The builder to create cell
final
cellStyle CellStyle?
An immutable style describing how to create cell Default is CellStyle.cell()
final
columnsCount int
The count of columns, it should big than 0.
final
controller ScrollController?
The ScrollController on vertical direction
final
extendedListDelegate → ExtendedListDelegate?
A delegate that provides extensions within the FlexGrid.
final
footerBuilder FooterBuilder?
The builder to create footer
final
footerStyle CellStyle?
An immutable style describing how to create footer Default is CellStyle.footer()
final
frozenedColumnsCount int
The count of forzened columns at leading
final
frozenedRowsCount int
The count of forzened rows at leading
final
frozenedTrailingColumnsCount int
The count of forzened columns at trailing
final
hashCode int
The hash code for this object.
no setterinherited
headerBuilder HeaderBuilder?
The builder to create header
final
headersBuilder HeadersBuilder?
The builder to custom the headers of FlexGrid
final
headerStyle CellStyle?
Defines the main axis extent of all of this sliver's children.
final
horizontalController LinkScrollController?
The controller for horizontal direction
final
horizontalHighPerformance bool
If true, forces the horizontal children to have the given extent(Cell width) in the scroll horizontal direction, it will use ListView.builder(extent: cellwidth) but it's jank when scroll, see issue https://github.com/flutter/flutter/issues/116765
final
horizontalPhysics ScrollPhysics?
The physics on both horizontal direction
final
indicatorBuilder → LoadingMoreIndicatorBuilder?
Widget builder for different loading state
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
if link is true and current over scroll, it will check and scroll parent ExtendedTabView. default is false
final
maxWidth double?
max width of FlexGrid, it's max width of row. if it's null, we will use LayoutBuilder to get maxwidth. but if it's in NestedScrollView body or SliverFillRemaining, LayoutBuilder will rebuild everytime when scroll.(height is changed,but width is not). it will has performance problem.
final
physics ScrollPhysics?
The physics vertical direction
final
rowWrapper RowWrapper<T>?
Decorate row widget in this call back.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showGlowLeading bool
Whether to show the overscroll glow on the side with negative scroll offsets.
final
showGlowTrailing bool
Whether to show the overscroll glow on the side with positive scroll offsets.
final
showHorizontalGlowLeading bool
Whether to show the overscroll glow on the side with negative scroll offsets in horizontal.
final
showHorizontalGlowTrailing bool
Whether to show the overscroll glow on the side with positive scroll offsets in horizontal.
final
shrinkWrap bool
Whether the extent of the scroll view in the scrollDirection should be determined by the contents being viewed.
final
sliverHeadersBuilder SliverHeadersBuilder?
The builder to custom the sliver headers of FlexGrid
final
source → LoadingMoreBase<T>
The data source of FlexGrid
final
verticalHighPerformance bool
If true, forces the vertical children to have the given extent(Cell height) in the scroll vertical direction.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _FlexGridState<T>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited