ArnaListTile constructor

const ArnaListTile({
  1. Key? key,
  2. Widget? leading,
  3. required String title,
  4. String? subtitle,
  5. Widget? trailing,
  6. GestureTapCallback? onTap,
  7. GestureLongPressCallback? onLongPress,
  8. EdgeInsetsGeometry? padding,
  9. double leadingToTitle = Styles.largePadding,
  10. bool enabled = true,
  11. bool showBackground = true,
  12. MouseCursor cursor = MouseCursor.defer,
  13. String? semanticLabel,
  14. bool enableFeedback = true,
})

Creates a list tile.

The title parameter is required. It is used to convey the most important information of list tile.

The subtitle parameter is used to display additional information. It is placed below the title.

The leading parameter is typically an Icon or an Image and it comes at the start of the tile.

The trailing parameter is typically an Icon, or an ArnaButton. It is placed at the very end of the tile.

The onTap parameter is used to provide an action that is called when the tile is tapped.

The onLongPress parameter is used to provide an action that is called when the tile is long-pressed.

The padding parameter sets the padding of the content inside the tile.

The leadingToTitle specifies the horizontal space between leading and title widgets.

Implementation

const ArnaListTile({
  super.key,
  this.leading,
  required this.title,
  this.subtitle,
  this.trailing,
  this.onTap,
  this.onLongPress,
  this.padding,
  this.leadingToTitle = Styles.largePadding,
  this.enabled = true,
  this.showBackground = true,
  this.cursor = MouseCursor.defer,
  this.semanticLabel,
  this.enableFeedback = true,
});