FlexGrid<T > class
Constructors
FlexGrid ({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 ? cellStyle , LoadingMoreIndicatorBuilder? indicatorBuilder , ExtendedListDelegate? extendedListDelegate , 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 , 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
The builder to create footer
final
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 setter inherited
The builder to create header
final
The builder to custom the headers of FlexGrid
final
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.
final inherited
link
→ bool
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 setter inherited
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
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