CupertinoTableRow class

Creates an iOS-style split table row with a leading widget, title widget and trailing widget. Also provides a space for helper widgets that appear underneath.

The title parameter is required. This widget is displayed on the top left of the row.

The leading parameter is optional and is displayed at the start of the row.

The trailing parameter is optional and is displayed at the end of the row. It might be an icon like an indicator or an info button

The padding parameter is used to pad the contents of the row. It defaults to the standard iOS padding. If no edge insets are intended, explicitly pass EdgeInsets.zero to padding.

The helper parameter is optional widget targeted at displaying more information about the row. Placed underneath the title, and will expand the row's height to accommodate for their presence. When a Text is given to helper, it will be shown in secondary label coloring and medium-weighted font.

The onPress parameter is optional and would trigger the CupertinoTableRowCallback Future Function to be executed. It is meant to be used for example with the trailing navigation indicator icon or info button

Inheritance

Constructors

CupertinoTableRow({Key? key, required Widget title, Widget? leading, Widget? helper, Widget? trailing, EdgeInsetsGeometry? padding, CupertinoTableRowCallback? onPress})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
helper Widget?
A widget that is displayed underneath the title widget.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
A widget that is displayed at the start of the row.
final
onPress CupertinoTableRowCallback?
The onPress triggers the CupertinoTableRowCallback Future Function
final
padding EdgeInsetsGeometry?
Content padding for the row.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title Widget
Title widget.
final
trailing Widget?
A widget that is displayed at the start of the row.
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