TableView<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TableView
- Available Extensions
Constructors
-
TableView({List<
T> ? tableDatas = const [], required BuildRowStyle buildRowStyle, bool enableTopDivider = false, bool enableBottomDivider = false, bool enableDivider = false, PreDealData? preDealData, bool shrinkWrap = true, Color dividerColor = Colors.black, double dividerHeight = 1, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController? controller, ScrollPhysics? physics, EdgeInsetsGeometry? padding, bool addAutomaticKeepAlive = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, double? cacheExtent, bool doubleScroll = false, ScrollBehavior? behavior, BuildTableHeaderStyle? buildTableHeaderStyle, double minCellWidth = 50, List<double> ? cellWidthFlex, int cellColumnCount = 1, ScrollController? titleScrollController, ScrollController? contentScrollController, Key? key}) -
const
Properties
- addAutomaticKeepAlive → bool
-
final
- addRepaintBoundaries → bool
-
final
- addSemanticIndexes → bool
-
final
- behavior → ScrollBehavior?
-
final
- buildRowStyle → BuildRowStyle
-
构建每一行的回调
final
- buildTableHeaderStyle → BuildTableHeaderStyle?
-
final
- cacheExtent → double?
-
final
- cellColumnCount → int
-
final
-
cellWidthFlex
→ List<
double> ? -
final
- contentScrollController → ScrollController?
-
final
- controller → ScrollController?
-
final
- dividerColor → Color
-
纵向分割线 横向分割线在 TabRow配置
final
- dividerHeight → double
-
final
- doubleScroll → bool
-
是否开启双向滑动 以下属性只有在双向滑动时有效
final
- enableBottomDivider → bool
-
是否开启 尾部分割线
final
- enableDivider → bool
-
final
- enableTopDivider → bool
-
是否开启 顶部分割线
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- minCellWidth → double
-
需要双向滑动说明列表不满足一屏显示,此时需要设置最小宽度作为基准,
其余宽度按照此基准扩大倍数。
final
- padding → EdgeInsetsGeometry?
-
final
- physics → ScrollPhysics?
-
final
- preDealData → PreDealData?
-
添加此回调 会覆盖 tableDatas 数据
final
- reverse → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollDirection → Axis
-
final
- shrinkWrap → bool
-
final
-
tableDatas
→ List<
T> ? -
数据 表示表格有多少行
final
- titleScrollController → ScrollController?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< TableView> -
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