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. dynamic icon,
  8. dynamic leading,
  9. Color? iconColor,
  10. Color? hoveredIconColor,
  11. Color? expandedIconColor,
  12. Color? iconBackgroundColor,
  13. Color? hoveredIconBackgroundColor,
  14. Color? expandedIconBackgroundColor,
  15. EdgeInsetsGeometry? iconPadding,
  16. BorderRadius? iconBorderRadius,
  17. double? iconSize,
  18. TextStyle? titleStyle,
  19. TextStyle? subtitleStyle,
  20. double? spacing,
  21. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  22. Widget? trailing,
  23. VoidCallback? onTap,
  24. EdgeInsetsGeometry? padding,
  25. BorderRadius? borderRadius,
  26. bool isHovered = false,
  27. bool isExpanded = false,
})

Implementation

const TTile({
  super.key,
  this.size = TTileSize.h5,
  this.title,
  this.titleWidget,
  this.subtitle,
  this.subtitleWidget,
  this.icon,
  this.leading,
  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 = CrossAxisAlignment.center,
  this.trailing,
  this.onTap,
  this.padding,
  this.borderRadius,
  this.isHovered = false,
  this.isExpanded = false,
});