GlassListTile class

A glass-aesthetic list tile following iOS 26 grouped row design.

GlassListTile is the glass design system's equivalent of Flutter's ListTile — a clean, stateless item with no knowledge of its position.

Divider rendering is the responsibility of the parent container: GlassGroupedSection automatically injects GlassDividers between tiles. For standalone column layouts, compose GlassDivider explicitly, as you would with Flutter's built-in ListTile + Divider pattern.

GlassGroupedSection(
  header: const Text('NETWORK'),
  children: [
    GlassListTile(
      leading: Icon(CupertinoIcons.wifi, color: CupertinoColors.white),
      title: Text('Wi-Fi'),
      trailing: GlassListTile.chevron,
    ),
    GlassListTile(
      leading: Icon(CupertinoIcons.bluetooth, color: CupertinoColors.white),
      title: Text('Bluetooth'),
      trailing: GlassListTile.chevron,
    ),
  ],
)

Standalone tile (own glass layer):

GlassListTile.standalone(
  leading: Icon(CupertinoIcons.star_fill, color: Colors.yellow),
  title: Text('Featured'),
  onTap: () { },
)
Inheritance

Constructors

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})
Creates a glass list tile for use inside a GlassCard, GlassGroupedSection, or other glass container. Does not create its own glass layer.
const
GlassListTile.standalone({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, LiquidGlassSettings? settings, GlassQuality? quality})
Creates a standalone glass list tile that manages its own glass layer.
const

Properties

contentPadding → EdgeInsetsGeometry
Padding inside the tile around the content row.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading → Widget?
Widget displayed at the start (left) of the tile.
final
leadingIconColor → Color?
Tint applied to leading icon colour.
final
onLongPress → VoidCallback?
Called when the user long-presses the tile.
final
onTap → VoidCallback?
Called when the user taps the tile.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subtitle → Widget?
Optional secondary content displayed under title.
final
subtitleStyle → TextStyle?
Text style for subtitle.
final
title → Widget
Primary content. Typically a Text widget.
final
titleStyle → TextStyle?
Text style for title.
final
trailing → Widget?
Widget displayed at the end (right) of the tile.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<GlassListTile>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

chevron → Widget
A standard iOS-style disclosure chevron for use as trailing.
no setter
infoButton → Widget
A standard iOS-style detail disclosure (circle with 'i') for trailing.
no setter