GTFGridItem class

Inheritance

Constructors

GTFGridItem({Key? key, VoidCallback? onTap, Color? backgroundColor = GTFColor.white, String? image = '', required String title, String subTitle = '', int badgeNumber = 0, bool showRedDot = false, String cornerMaskImage = '', double radius = 0, double badgeHeight = 18, double redDotHeight = 12, Color badgeColor = GTFColor.red, Color badgeTextColor = GTFColor.white, double badgeTextFontSize = 12, double badgeBorderWidth = 1, GTFBadgeMaxStyle badgeMaxStyle = GTFBadgeMaxStyle.number, GTFBadgePosition? badgePosition, GTFGridContentMainAlignment contentMainAlignment = GTFGridContentMainAlignment.center, GTFGridContentCrossAlignment contentCrossAlignment = GTFGridContentCrossAlignment.center, GTFGridImagePosition imagePosition = GTFGridImagePosition.left, double? imageTitleSpacing = 0, GTFGridAlignment? alignment = GTFGridAlignment.center, EdgeInsets? margin = const EdgeInsets.all(12), double titleFontSize = 13, double subTitleFontSize = 12, Color titleColor = GTFColor.grey6, Color subTitleColor = GTFColor.grey4, FontWeight titleFontWeight = FontWeight.normal, FontWeight subTitleFontWeight = FontWeight.normal, double titleHeight = 1.38, double subTitleHeight = 1.38, double imageWidth = 37, double imageHeight = 37})
GTFGridItem.redDot({Key? key, VoidCallback? onTap, Color? backgroundColor = GTFColor.white, String? image = '', required String title, String subTitle = '', int badgeNumber = 0, bool showRedDot = true, String cornerMaskImage = '', double radius = 0, double badgeHeight = 18, double redDotHeight = 12, Color badgeColor = GTFColor.red, Color badgeTextColor = GTFColor.white, double badgeTextFontSize = 12, double badgeBorderWidth = 1, GTFBadgeMaxStyle badgeMaxStyle = GTFBadgeMaxStyle.number, GTFBadgePosition? badgePosition, GTFGridContentMainAlignment contentMainAlignment = GTFGridContentMainAlignment.center, GTFGridContentCrossAlignment contentCrossAlignment = GTFGridContentCrossAlignment.center, GTFGridImagePosition imagePosition = GTFGridImagePosition.left, double? imageTitleSpacing = 0, GTFGridAlignment? alignment = GTFGridAlignment.center, EdgeInsets? margin = const EdgeInsets.all(12), double titleFontSize = 13, double subTitleFontSize = 12, Color titleColor = GTFColor.grey6, Color subTitleColor = GTFColor.grey4, FontWeight titleFontWeight = FontWeight.normal, FontWeight subTitleFontWeight = FontWeight.normal, double titleHeight = 1.38, double subTitleHeight = 1.38, double imageWidth = 37, double imageHeight = 37})
const

Properties

alignment → GTFGridAlignment?
alignment:对齐方式
final
backgroundColor → Color?
backgroundColor:item背景色
final
badgeBorderWidth → double
badgeBorderWidth:边框线宽度
final
badgeColor → Color
badgeColor:角标颜色
final
badgeHeight → double
badgeHeight:角标高度
final
badgeMaxStyle → GTFBadgeMaxStyle
maxStyle:超过最大值样式
final
badgeNumber → int
badgeNumber:角标数字
final
badgePosition → GTFBadgePosition?
徽标位置
final
badgeTextColor → Color
badgeTextColor:角标数字颜色
final
badgeTextFontSize → double
badgeTextFontSize:角标字号
final
contentCrossAlignment → GTFGridContentCrossAlignment
imageTileAlignment:图片和文字的交叉轴对齐方式
final
contentMainAlignment → GTFGridContentMainAlignment
contentMainAlignment:图片和文字的主轴对齐方式
final
cornerMaskImage → String
cornerMaskImage:右上角mask图片
final
hashCode → int
The hash code for this object.
no setterinherited
image → String?
image:图片
final
imageHeight → double
imageHeight:图片高
final
imagePosition → GTFGridImagePosition
imagePosition:图片位置
final
imageTitleSpacing → double?
imageTitleSpacing:图片和文字间距
final
imageWidth → double
imageWidth:图片宽
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin → EdgeInsets?
margin:外边距
final
onTap → VoidCallback?
onTap:点击事件
final
radius → double
radius:item圆角
final
redDotHeight → double
redDotHeight:小高度
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showRedDot → bool
showRedDot:显示小红点
final
subTitle → String
subTitle:副标题
final
subTitleColor → Color
subTitleColor:副标题颜色
final
subTitleFontSize → double
subTitleFont:副标题字号
final
subTitleFontWeight → FontWeight
subTitleFontWeight:副标题字重
final
subTitleHeight → double
subTitleHeight:副标题行高,为字号的倍数
final
title → String
title:主标题
final
titleColor → Color
titleColor:主标题颜色
final
titleFontSize → double
titleFont:主标题字号
final
titleFontWeight → FontWeight
titleFontWeight:标题字重
final
titleHeight → double
titleHeight:标题行高,为字号的倍数
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
getContentCrossAxisAlignmtnt() → CrossAxisAlignment
getContentMainAxisAlignmtnt() → MainAxisAlignment
getLayoutContent() → Widget
getStackAlignment() → AlignmentDirectional
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, int wrapWidth = 65}) → 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