GlassListTile constructor

const GlassListTile({
  1. Key? key,
  2. Widget? leading,
  3. required Widget title,
  4. Widget? subtitle,
  5. Widget? trailing,
  6. VoidCallback? onTap,
  7. VoidCallback? onLongPress,
  8. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
  9. Color? leadingIconColor,
  10. TextStyle? titleStyle,
  11. TextStyle? subtitleStyle,
})

Creates a glass list tile for use inside a GlassCard, GlassGroupedSection, or other glass container. Does not create its own glass layer.

Implementation

const GlassListTile({
  super.key,
  this.leading,
  required this.title,
  this.subtitle,
  this.trailing,
  this.onTap,
  this.onLongPress,
  this.contentPadding = const EdgeInsets.symmetric(
    horizontal: 16,
    vertical: 12,
  ),
  this.leadingIconColor,
  this.titleStyle,
  this.subtitleStyle,
})  : _useOwnLayer = false,
      _settings = null,
      _quality = null;