GlassListTile.standalone constructor

const GlassListTile.standalone({
  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,
  12. LiquidGlassSettings? settings,
  13. GlassQuality? quality,
})

Creates a standalone glass list tile that manages its own glass layer.

Use when the tile is not inside a GlassCard or GlassContainer.

Implementation

const GlassListTile.standalone({
  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,
  LiquidGlassSettings? settings,
  GlassQuality? quality,
})  : _useOwnLayer = true,
      _settings = settings,
      _quality = quality;