GTFGridItem.redDot constructor
const
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,
Implementation
const GTFGridItem.redDot({
Key? key,
this.onTap,
this.backgroundColor = GTFColor.white,
this.image = '',
required this.title,
this.subTitle = '',
this.badgeNumber = 0,
this.showRedDot = true,
this.cornerMaskImage = '',
this.radius = 0,
this.badgeHeight = 18,
this.redDotHeight = 12,
this.badgeColor = GTFColor.red,
this.badgeTextColor = GTFColor.white,
this.badgeTextFontSize = 12,
this.badgeBorderWidth = 1,
this.badgeMaxStyle = GTFBadgeMaxStyle.number,
this.badgePosition,
this.contentMainAlignment = GTFGridContentMainAlignment.center,
this.contentCrossAlignment = GTFGridContentCrossAlignment.center,
this.imagePosition = GTFGridImagePosition.left,
this.imageTitleSpacing = 0,
this.alignment = GTFGridAlignment.center,
this.margin = const EdgeInsets.all(12),
this.titleFontSize = 13,
this.subTitleFontSize = 12,
this.titleColor = GTFColor.grey6,
this.subTitleColor = GTFColor.grey4,
this.titleFontWeight = FontWeight.normal,
this.subTitleFontWeight = FontWeight.normal,
this.titleHeight = 1.38,
this.subTitleHeight = 1.38,
this.imageWidth = 37,
this.imageHeight = 37,
}) : super(key: key);