GlassListTile constructor
const
GlassListTile({
- Key? key,
- Widget? leading,
- required Widget title,
- Widget? subtitle,
- Widget? trailing,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
- Color? leadingIconColor,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- List<
GlassSwipeAction> ? leadingSwipeActions, - List<
GlassSwipeAction> ? trailingSwipeActions, - bool allowsFullSwipe = true,
- double fullSwipeThreshold = 0.65,
- double? swipeActionWidth,
- double? swipeActionButtonDiameter,
- double? swipeActionButtonSpacing,
- double? swipeActionHorizontalPadding,
- GlassSwipeController? swipeController,
- ValueChanged<
GlassSwipeState> ? onSwipeStateChanged, - GlassSwipeActionStyle? swipeActionStyle,
- VoidCallback? onDismissed,
- List<
Widget> ? contextMenuActions, - Widget contextMenuPreviewBuilder(
- BuildContext context
- VoidCallback? onContextMenuDismissed,
- Duration? contextMenuLongPressDuration,
- GlassQuality? contextMenuQuality,
- LiquidGlassSettings? contextMenuSettings,
- bool? isEditing,
- bool canDelete = false,
- VoidCallback? onDelete,
- bool canInsert = false,
- VoidCallback? onInsert,
- bool canReorder = false,
- int? reorderIndex,
- bool canSelect = false,
- bool isSelected = false,
- 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;