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,
  12. List<GlassSwipeAction>? leadingSwipeActions,
  13. List<GlassSwipeAction>? trailingSwipeActions,
  14. bool allowsFullSwipe = true,
  15. double fullSwipeThreshold = 0.65,
  16. double? swipeActionWidth,
  17. double? swipeActionButtonDiameter,
  18. double? swipeActionButtonSpacing,
  19. double? swipeActionHorizontalPadding,
  20. GlassSwipeController? swipeController,
  21. ValueChanged<GlassSwipeState>? onSwipeStateChanged,
  22. GlassSwipeActionStyle? swipeActionStyle,
  23. VoidCallback? onDismissed,
  24. List<Widget>? contextMenuActions,
  25. Widget contextMenuPreviewBuilder(
    1. BuildContext context
    )?,
  26. VoidCallback? onContextMenuDismissed,
  27. Duration? contextMenuLongPressDuration,
  28. GlassQuality? contextMenuQuality,
  29. LiquidGlassSettings? contextMenuSettings,
  30. bool? isEditing,
  31. bool canDelete = false,
  32. VoidCallback? onDelete,
  33. bool canInsert = false,
  34. VoidCallback? onInsert,
  35. bool canReorder = false,
  36. int? reorderIndex,
  37. bool canSelect = false,
  38. bool isSelected = false,
  39. ValueChanged<bool>? onSelectedChanged,
})

Creates a glass list tile for use inside a GlassContainer.card, 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,
  this.leadingSwipeActions,
  this.trailingSwipeActions,
  this.allowsFullSwipe = true,
  this.fullSwipeThreshold = 0.65,
  this.swipeActionWidth,
  this.swipeActionButtonDiameter,
  this.swipeActionButtonSpacing,
  this.swipeActionHorizontalPadding,
  this.swipeController,
  this.onSwipeStateChanged,
  this.swipeActionStyle,
  this.onDismissed,
  this.contextMenuActions,
  this.contextMenuPreviewBuilder,
  this.onContextMenuDismissed,
  this.contextMenuLongPressDuration,
  this.contextMenuQuality,
  this.contextMenuSettings,
  this.isEditing,
  this.canDelete = false,
  this.onDelete,
  this.canInsert = false,
  this.onInsert,
  this.canReorder = false,
  this.reorderIndex,
  this.canSelect = false,
  this.isSelected = false,
  this.onSelectedChanged,
})  : _useOwnLayer = false,
      _settings = null,
      _quality = null;