getThumbTextOrIcon method
Implementation
Widget getThumbTextOrIcon() {
switch (iconType) {
case UFUThumbIconType.template:
return UFUIcon(Icons.description_outlined,
color: (isSelect) ? AppTheme.themeColors.base : getIconColor(iconType),
size: size == ThumbSize.small ? 18 : 24,
);
case UFUThumbIconType.templateGroup:
return UFUIcon(Icons.filter_none_outlined,
color: (isSelect) ? AppTheme.themeColors.base : getIconColor(iconType),
size: size == ThumbSize.small ? 18 : 24,
);
default:
return UFUText(
text: getIconText(iconType),
fontWeight: UFUFontWeight.bold,
textSize: (size == ThumbSize.small)
? UFUTextSize.heading6
: UFUTextSize.heading4,
textColor:
(isSelect) ? AppTheme.themeColors.base : getIconColor(iconType),
);
}
}