SectionGridAdapterMixin mixin

Superclass Constraints
Implemented types

Properties

crossAxisExtent double
列表交叉轴大小
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
mainAxisExtent double
列表主轴大小
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalCount int
no setterinherited

Methods

buildItem(BuildContext context, int position) Widget
构建item 组件,内部使用,通常情况下子类不需要重写这个
inherited
createExtraSection(int section, int numberOfItems, int position) GridSectionInfo
override
createSection(int section, int numberOfItems, int position) GridSectionInfo
创建sectionInfo
override
getCrossAxisSpacing(int section) double
与滑动方向交叉 的item间隔
getFooter(BuildContext context) Widget
inherited
getFooterItemSpacing(int section) double
footer和item的间距
getHeader(BuildContext context) Widget
inherited
getHeaderItemSpacing(int section) double
header和item的间距
getItem(BuildContext context, IndexPath indexPath) Widget
获取item
inherited
getItemCount() int
item总数,内部使用,通常情况下子类不需要重写这个
inherited
getMainAxisSpacing(int section) double
滑动方向的 item间隔
getSectionFooter(BuildContext context, int section) Widget
inherited
getSectionHeader(BuildContext context, int section) Widget
inherited
getSectionInsets(int section) EdgeInsets
section边距
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyDataChange() bool
数据变了
inherited
numberOfItems(int section) int
每个section的item数量
inherited
numberOfSections() int
section总数
inherited
onSectionHeaderStick(int section) → void
header 吸顶了
inherited
sectionInfoForPosition(int position) GridSectionInfo?
通过position获取对应的sectionInfo
override
sectionInfoForSection(int section) GridSectionInfo?
获取对应section
override
shouldExistFooter() bool
类似UITableView.tableFooterView
inherited
shouldExistHeader() bool
类似UITableView.tableHeaderView
inherited
shouldExistSectionFooter(int section) bool
section 底部
inherited
shouldExistSectionHeader(int section) bool
section 头部
inherited
shouldSectionHeaderStick(int section) bool
是否需要吸顶悬浮
inherited
toString() String
A string representation of this object.
inherited

Operators

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