BrnRichInfoGrid class

两列key-value 展示信息的集合,需要配合BrnRichGridInfo使用

组件内部是通过GridView来实现的,GridView是通过宽高比来实现子节点的布局 并且组件内部处理了字体大小,高度变化的情况。

BrnPairInfoTable组件不同,该组件的每个组件都是单行展示

除了基本的信息展示外,使用BrnRichGridInfo还可以实现富文本、复杂Widget的功能。 样式: 支持文本、富文本和自定义的widget 常用的情况可以通过类中的静态函数构造 富文本和Icon的情况推荐使用 BrnRichTextGenerator 构造

BrnRichInfoGridWidget( pairInfoList:

其他信息展示组件

Inheritance
Available Extensions

Constructors

BrnRichInfoGrid({Key? key, List<BrnRichGridInfo>? pairInfoList, EdgeInsetsGeometry? padding, double? rowSpace, double? space, double? itemHeight, int crossAxisCount = 2, BrnPairRichInfoGridConfig? themeData})
create BrnRichInfoGrid

Properties

crossAxisCount int
一共多少列 默认2列
final
hashCode int
The hash code for this object.
no setterinherited
itemHeight double?
item 的高度
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding EdgeInsetsGeometry?
gridView 为children包裹的padding,默认是从media中获取,支持修改 同gridView的padding
final
pairInfoList List<BrnRichGridInfo>?
待展示的文本信息
final
rowSpace double?
行间距 纵向
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
space double?
元素间距 横向
final
themeData BrnPairRichInfoGridConfig?
the theme config of BrnRichInfoGrid
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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