MagicTile constructor
const
MagicTile({
- Key? key,
- Widget? title,
- Widget? subtitle,
- Widget? leading,
- Widget? trailing,
- VoidCallback? onPressed,
- String? titleText,
- String? subtitleText,
- IconData? leadingIcon,
- List<
MenuItem> contextMenu = const [], - bool fatPad = true,
- bool contextMenuEnabled = false,
- bool essentialLeading = false,
- bool essentialTrailing = true,
- double fatThreshold = 500,
- double leadingThreshold = 300,
- double trailingThreshold = 350,
Implementation
const MagicTile({
super.key,
this.title,
this.subtitle,
this.leading,
this.trailing,
this.onPressed,
this.titleText,
this.subtitleText,
this.leadingIcon,
this.contextMenu = const [],
this.fatPad = true,
this.contextMenuEnabled = false,
this.essentialLeading = false,
this.essentialTrailing = true,
this.fatThreshold = 500,
this.leadingThreshold = 300,
this.trailingThreshold = 350,
});