LineTile constructor

const LineTile({
  1. Key? key,
  2. Widget? leading,
  3. Widget? title,
  4. Widget? text,
  5. double space = 8.0,
  6. int titleFlex = 1,
  7. int textFlex = 1,
  8. Widget? subtitle,
  9. Widget? trailing,
  10. bool isThreeLine = false,
  11. bool? dense,
  12. VisualDensity? visualDensity,
  13. ShapeBorder? shape,
  14. ListTileStyle? style,
  15. Color? selectedColor,
  16. Color? iconColor,
  17. Color? textColor,
  18. EdgeInsetsGeometry? contentPadding,
  19. bool enabled = true,
  20. GestureTapCallback? onTap,
  21. GestureLongPressCallback? onLongPress,
  22. ValueChanged<bool>? onFocusChange,
  23. MouseCursor? mouseCursor,
  24. bool selected = false,
  25. Color? focusColor,
  26. Color? hoverColor,
  27. Color? splashColor,
  28. FocusNode? focusNode,
  29. bool autofocus = false,
  30. Color? tileColor,
  31. Color? selectedTileColor,
  32. bool? enableFeedback,
  33. double? horizontalTitleGap,
  34. double? minVerticalPadding,
  35. double? minLeadingWidth,
  36. bool shimmer = false,
  37. Color? shimmerBaseColor,
  38. Color? shimmerHighlightColor,
})

Items can be listed on the left and right ListTile.

If text is specified, the widget can be placed to the right of title.

The size can be adjusted by specifying titleFlex and textFlex.

The spacing can be adjusted by specifying space.

左右に項目を記載可能なListTile

textを指定するとtitleの右側にウィジェットを配置できます。

titleFlextextFlexを指定してサイズを調整することが可能です。

spaceを指定すると間隔を調整することが可能です。

Implementation

const LineTile({
  super.key,
  super.leading,
  super.title,
  this.text,
  this.space = 8.0,
  this.titleFlex = 1,
  this.textFlex = 1,
  super.subtitle,
  super.trailing,
  super.isThreeLine = false,
  super.dense,
  super.visualDensity,
  super.shape,
  super.style,
  super.selectedColor,
  super.iconColor,
  super.textColor,
  super.contentPadding,
  super.enabled = true,
  super.onTap,
  super.onLongPress,
  super.onFocusChange,
  super.mouseCursor,
  super.selected = false,
  super.focusColor,
  super.hoverColor,
  super.splashColor,
  super.focusNode,
  super.autofocus = false,
  super.tileColor,
  super.selectedTileColor,
  super.enableFeedback,
  super.horizontalTitleGap,
  super.minVerticalPadding,
  super.minLeadingWidth,
  this.shimmer = false,
  this.shimmerBaseColor,
  this.shimmerHighlightColor,
});