TTile constructor

const TTile({
  1. Key? key,
  2. TSize size = TTileSize.h5,
  3. String? title,
  4. Widget? titleWidget,
  5. String? subtitle,
  6. Widget? subtitleWidget,
  7. String? desc,
  8. Widget? descWidget,
  9. TextStyle? descStyle,
  10. dynamic icon,
  11. dynamic leading,
  12. String? imageUrl,
  13. bool forceCache = true,
  14. List<Widget>? highlights,
  15. List<TKeyValue>? values,
  16. TKeyValueMode? valuesMode,
  17. double? valuesSpacing,
  18. Color? iconColor,
  19. Color? hoveredIconColor,
  20. Color? expandedIconColor,
  21. Color? iconBackgroundColor,
  22. Color? hoveredIconBackgroundColor,
  23. Color? expandedIconBackgroundColor,
  24. EdgeInsetsGeometry? iconPadding,
  25. BorderRadius? iconBorderRadius,
  26. double? iconSize,
  27. TextStyle? titleStyle,
  28. TextStyle? subtitleStyle,
  29. double? spacing,
  30. CrossAxisAlignment? crossAxisAlignment,
  31. Widget? trailing,
  32. bool trailingAboveOnOverflow = false,
  33. VoidCallback? onTap,
  34. Object? permission,
  35. TAuthMode? onDenied,
  36. EdgeInsetsGeometry? padding,
  37. BorderRadius? borderRadius,
  38. bool isHovered = false,
  39. bool isExpanded = false,
  40. bool iconOnTop = false,
})

Implementation

const TTile({
  super.key,
  this.size = TTileSize.h5,
  this.title,
  this.titleWidget,
  this.subtitle,
  this.subtitleWidget,
  this.desc,
  this.descWidget,
  this.descStyle,
  this.icon,
  this.leading,
  this.imageUrl,
  this.forceCache = true,
  this.highlights,
  this.values,
  this.valuesMode,
  this.valuesSpacing,
  this.iconColor,
  this.hoveredIconColor,
  this.expandedIconColor,
  this.iconBackgroundColor,
  this.hoveredIconBackgroundColor,
  this.expandedIconBackgroundColor,
  this.iconPadding,
  this.iconBorderRadius,
  this.iconSize,
  this.titleStyle,
  this.subtitleStyle,
  this.spacing,
  this.crossAxisAlignment,
  this.trailing,
  this.trailingAboveOnOverflow = false,
  this.onTap,
  this.permission,
  this.onDenied,
  this.padding,
  this.borderRadius,
  this.isHovered = false,
  this.isExpanded = false,
  this.iconOnTop = false,
});