NineGridView class

NineGridView. like WeChat, WeiBo International, WeChat group, DingTalk group, QQ group.

Another NineGridView in flukit UI Kit,using GridView implementation。

Inheritance

Constructors

NineGridView({Key? key, double? width, double? height, double space = 3, double arcAngle = 0, int initIndex = 1, EdgeInsets padding = EdgeInsets.zero, EdgeInsets margin = EdgeInsets.zero, AlignmentGeometry? alignment, Color? color, Decoration? decoration, NineGridType type = NineGridType.weChat, required int itemCount, required IndexedWidgetBuilder itemBuilder, int? bigImageWidth, int? bigImageHeight, Image? bigImage, String? bigImageUrl})
create NineGridView. If you want to show a single big picture. It is recommended to use a medium-quality picture, because the original picture is too large and takes time to load. 单张大图建议使用中等质量图片,因为原图太大加载耗时。 you need input (bigImageWidth + bigImageHeight) or (bigImage + bigImageUrl).

Properties

alignment AlignmentGeometry?
Align the child within the container.
final
arcAngle double
QQ group arc angle (0 ~ 180).
final
bigImage Image?
It is recommended to use a medium-quality picture, because the original picture is too large and takes time to load. 单张大图建议使用中等质量图片,因为原图太大加载耗时。 Single big picture Image.
final
bigImageHeight int?
Single big picture height.
final
bigImageUrl String?
Single big picture url.
final
bigImageWidth int?
Single big picture width.
final
color Color?
The color to paint behind the child.
final
decoration Decoration?
The decoration to paint behind the child.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
View height.
final
initIndex int
QQ group init index (0 or 1). def 1.
final
itemBuilder IndexedWidgetBuilder
Called to build children for the view.
final
itemCount int
The total number of children this delegate can provide.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsets
View margin.
final
padding EdgeInsets
View padding.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
space double
The number of logical pixels between each child.
final
type NineGridType
NineGridView type.
final
width double?
View width.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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