Tile constructor

const Tile({
  1. Key? key,
  2. Widget? title,
  3. Widget? subtitle,
  4. Widget? leading,
  5. Widget? trailing,
  6. VoidCallback? onPressed,
  7. double knownIconSize = 20,
  8. EdgeInsets contentPadding = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  9. EdgeInsets leadingPadding = const EdgeInsets.only(right: 10, top: 4),
  10. EdgeInsets trailingPadding = const EdgeInsets.only(left: 10, top: 4),
  11. bool sliver = false,
})

Implementation

const Tile({
  super.key,
  this.title,
  this.subtitle,
  this.leading,
  this.trailing,
  this.onPressed,
  this.knownIconSize = 20,
  this.contentPadding =
      const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  this.leadingPadding = const EdgeInsets.only(right: 10, top: 4),
  this.trailingPadding = const EdgeInsets.only(left: 10, top: 4),
  this.sliver = false,
});