TTile constructor

const TTile({
  1. Key? key,
  2. String? title,
  3. Widget? titleWidget,
  4. String? subtitle,
  5. Widget? subtitleWidget,
  6. dynamic icon,
  7. dynamic leading,
  8. Color? iconColor,
  9. Color? hoveredIconColor,
  10. Color? expandedIconColor,
  11. Color? iconBackgroundColor,
  12. Color? hoveredIconBackgroundColor,
  13. Color? expandedIconBackgroundColor,
  14. EdgeInsetsGeometry? iconPadding,
  15. BorderRadius? iconBorderRadius,
  16. double? iconSize,
  17. TextStyle? titleStyle,
  18. TextStyle? subtitleStyle,
  19. double spacing = 12.0,
  20. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  21. Widget? trailing,
  22. VoidCallback? onTap,
  23. EdgeInsetsGeometry? padding,
  24. BorderRadius? borderRadius,
  25. bool isHovered = false,
  26. bool isExpanded = false,
})

Implementation

const TTile({
  super.key,
  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 = 12.0,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.trailing,
  this.onTap,
  this.padding,
  this.borderRadius,
  this.isHovered = false,
  this.isExpanded = false,
});