TTile constructor
const
TTile({
- Key? key,
- String? title,
- Widget? titleWidget,
- String? subtitle,
- Widget? subtitleWidget,
- dynamic icon,
- dynamic leading,
- Color? iconColor,
- Color? hoveredIconColor,
- Color? expandedIconColor,
- Color? iconBackgroundColor,
- Color? hoveredIconBackgroundColor,
- Color? expandedIconBackgroundColor,
- EdgeInsetsGeometry? iconPadding,
- BorderRadius? iconBorderRadius,
- double? iconSize,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- double spacing = 12.0,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- Widget? trailing,
- VoidCallback? onTap,
- EdgeInsetsGeometry? padding,
- BorderRadius? borderRadius,
- bool isHovered = false,
- 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,
});