CustomListTile class
ListTile 列表项组件
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CustomListTile
Constructors
-
CustomListTile({Key? key, Widget? leading, Widget? title, Widget? subtitle, Widget? trailing, bool? dense, VisualDensity? visualDensity, ShapeBorder? shape, ListTileStyle? style, Color? selectedColor, Color? iconColor, Color? textColor, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, TextStyle? leadingAndTrailingTextStyle, EdgeInsetsGeometry? contentPadding, GestureTapCallback? onTap, GestureLongPressCallback? onLongPress, ValueChanged<
bool> ? onFocusChange, MouseCursor? mouseCursor, Color? focusColor, Color? hoverColor, Color? splashColor, FocusNode? focusNode, Color? tileColor, Color? selectedTileColor, bool? enableFeedback, double? horizontalTitleGap, double? minVerticalPadding, double? minLeadingWidth, ListTileTitleAlignment? titleAlignment, bool isThreeLine = false, bool selected = false, bool autofocus = false, String? titleText, bool? isRequired, String? subtitleText, Widget? additionalInfo, String? additionalInfoText, String? trailingText, bool? card = false}) -
ListTile 列表项组件
const
Properties
- additionalInfo → Widget?
-
附加信息组件
final
- additionalInfoText → String?
-
附加信息文本
final
- autofocus → bool
-
自动获取焦点
final
- card → bool?
-
单独 Card 项
final
- contentPadding → EdgeInsetsGeometry?
-
内容内边距
final
- dense → bool?
-
使用密集布局
final
- enabled → bool
-
启用状态
final
- enableFeedback → bool?
-
启用反馈
final
- focusColor → Color?
-
焦点颜色
final
- focusNode → FocusNode?
-
焦点节点
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalTitleGap → double?
-
标题水平间距
final
- hoverColor → Color?
-
悬停颜色
final
- iconColor → Color?
-
图标颜色
final
- isRequired → bool?
-
必填标记
final
- isThreeLine → bool
-
使用三行布局
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading → Widget?
-
前导部分的组件
final
- leadingAndTrailingTextStyle → TextStyle?
-
前导和尾部文本样式
final
- minLeadingWidth → double?
-
最小前导宽度
final
- minVerticalPadding → double?
-
最小垂直内边距
final
- mouseCursor → MouseCursor?
-
鼠标指针样式
final
-
onFocusChange
→ ValueChanged<
bool> ? -
焦点变化回调
final
- onLongPress → GestureLongPressCallback?
-
长按回调
final
- onTap → GestureTapCallback?
-
点击回调
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
选中状态
final
- selectedColor → Color?
-
选中状态的颜色
final
- selectedTileColor → Color?
-
选中状态背景色
final
- shape → ShapeBorder?
-
形状边框
final
- splashColor → Color?
-
水波纹颜色
final
- style → ListTileStyle?
-
列表项样式
final
- subtitle → Widget?
-
副标题组件
final
- subtitleText → String?
-
副标题文本
final
- subtitleTextStyle → TextStyle?
-
副标题文本样式
final
- textColor → Color?
-
文本颜色
final
- tileColor → Color?
-
列表项背景色
final
- title → Widget?
-
标题组件
final
- titleAlignment → ListTileTitleAlignment?
-
标题对齐方式
final
- titleText → String?
-
标题文本
final
- titleTextStyle → TextStyle?
-
标题文本样式
final
- trailing → Widget?
-
尾部组件
final
- trailingText → String?
-
尾部文本
final
- visualDensity → VisualDensity?
-
视觉密度
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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