GFListTile constructor

const GFListTile({
  1. Key? key,
  2. String? titleText,
  3. String? subTitleText,
  4. Color? color,
  5. Widget? avatar,
  6. Widget? title,
  7. Widget? subTitle,
  8. Widget? description,
  9. Widget? icon,
  10. EdgeInsets padding = const EdgeInsets.all(8),
  11. EdgeInsets margin = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  12. Color? listItemTextColor = GFColors.DARK,
  13. bool enabled = true,
  14. GestureTapCallback? onTap,
  15. GestureLongPressCallback? onLongPress,
  16. bool selected = false,
  17. Color? focusColor,
  18. Color? hoverColor,
  19. FocusNode? focusNode,
  20. bool autofocus = false,
  21. String? firstButtonTitle,
  22. String? secondButtonTitle,
  23. GestureTapCallback? onFirstButtonTap,
  24. GestureTapCallback? onSecondButtonTap,
  25. TextStyle? firstButtonTextStyle,
  26. TextStyle? secondButtonTextStyle,
  27. double? radius,
  28. BoxShadow? shadow,
})

Creates ListTile with leading, title, trailing, image widget for almost every type of ListTile design.

Implementation

const GFListTile({
  Key? key,
  this.titleText,
  this.subTitleText,
  this.color,
  this.avatar,
  this.title,
  this.subTitle,
  this.description,
  this.icon,
  this.padding = const EdgeInsets.all(8),
  this.margin = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  this.listItemTextColor = GFColors.DARK,
  this.enabled = true,
  this.onTap,
  this.onLongPress,
  this.selected = false,
  this.focusColor,
  this.hoverColor,
  this.focusNode,
  this.autofocus = false,
  this.firstButtonTitle,
  this.secondButtonTitle,
  this.onFirstButtonTap,
  this.onSecondButtonTap,
  this.firstButtonTextStyle,
  this.secondButtonTextStyle,
  this.radius,
  this.shadow,
}) : super(key: key);