ZdsFieldsListTile<T> class
A tile showing a list of properties with their respective values.
This component can be used instead of a table to show a lot of data at once in an easy to scan format.
ZdsFieldsListTile(
title: const Text('Project Title'),
fields: const [
TileField(
start: Text('Start/End'),
end: Text('07/05/2021 - 07/05/2021'),
),
TileField(
start: Text('Approval Date'),
end: Text('07/06/2021 16:45 PST'),
),
],
data: ProjectDataObject(),
onTap: (data) => manageProjectDataObject(),
),
See also:
- ZdsPropertiesList, another way to show table-like data.
- TileField, which defines the fields.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ZdsFieldsListTile
- Available Extensions
Constructors
-
ZdsFieldsListTile({Key? key, Widget? title, List<
TileField> ? fields, TextStyle? fieldsStartTextStyle, TextStyle? fieldsEndTextStyle, T? data, Widget? footnote, void onTap(T?)?, bool shrink = true, int? startFieldFlexFactor, EdgeInsets cardPadding = const EdgeInsets.symmetric(horizontal: 14, vertical: 18)}) -
Creates a tile showing a list of properties with their respective values.
const
Properties
- cardPadding → EdgeInsets
-
The card's internal padding.
final
- data → T?
-
Data called in onTap argument.
final
-
fields
→ List<
TileField> ? -
A list of pairs of data.
final
- fieldsEndTextStyle → TextStyle?
-
The textStyle used for the end elements of each field.
final
- fieldsStartTextStyle → TextStyle?
-
The textStyle used for the starting elements of each field.
final
- footnote → Widget?
-
The additional information, shown at the bottom of this tile.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onTap → (void Function(T?)?)
-
The function to call whenever the user taps on this tile.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shrink → bool
-
Whether the fields are closely packed together or separated with more space.
final
- startFieldFlexFactor → int?
-
Determines how much space the start field should take up in the TileField row.
final
- title → Widget?
-
The title, shown at the top of this tile.
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.
override
-
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}) → 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