SimpleListTile class

Inheritance
Available extensions

Constructors

SimpleListTile({Key? key, Widget? leading, Widget? title, Widget? subtitle, Widget? trailing, bool isThreeLine = false, bool dense = false, EdgeInsetsGeometry? contentPadding, bool enabled = true, GestureTapCallback? onTap, GestureLongPressCallback? onLongPress, bool selected = false})
Creates a list tile.
const

Properties

contentPadding EdgeInsetsGeometry?
The tile's internal padding.
final
dense bool
Whether this list tile is part of a vertically dense list.
final
enabled bool
Whether this list tile is interactive.
final
hashCode int
The hash code for this object.
no setterinherited
isThreeLine bool
Whether this list tile is intended to display three lines of text.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
A widget to display before the title.
final
onLongPress GestureLongPressCallback?
Called when the user long-presses on this list tile.
final
onTap GestureTapCallback?
Called when the user taps this list tile.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
If this tile is also enabled then icons and text are rendered with the same color.
final
subtitle Widget?
Additional content displayed below the title.
final
title Widget?
The primary content of the list tile.
final
trailing Widget?
A widget to display after the title.
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
marginAll(double margin) Widget

Available on Widget, provided by the WidgetExtension extension

marginHorizontal(double margin) Widget

Available on Widget, provided by the WidgetExtension extension

marginOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) Widget

Available on Widget, provided by the WidgetExtension extension

marginVertical(double margin) Widget

Available on Widget, provided by the WidgetExtension extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paddingAll(double padding) Widget

Available on Widget, provided by the WidgetExtension extension

paddingBottom(double padding) Widget

Available on Widget, provided by the WidgetExtension extension

paddingHorizontal(double padding) Widget

Available on Widget, provided by the WidgetExtension extension

paddingLeft(double padding) Widget

Available on Widget, provided by the WidgetExtension extension

paddingRight(double padding) Widget

Available on Widget, provided by the WidgetExtension extension

paddingTop(double padding) Widget

Available on Widget, provided by the WidgetExtension extension

paddingVertical(double padding) Widget

Available on Widget, provided by the WidgetExtension extension

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

Static Methods

divideTiles({BuildContext? context, required Iterable<Widget> tiles, Color? color}) Iterable<Widget>
Add a one pixel border in between each tile. If color isn't specified the ThemeData.dividerColor of the context's Theme is used.