RowItem class
This widget has been designed to represent a text, with its associated value. The title widget will be located at the left of the RowItem widget, and the description widget, at the right.
- Inheritance
Constructors
- RowItem({Key? key, required Widget title, required Widget description})
-
const
- RowItem.boolean(String title, bool? value, {Key? key, TextStyle? titleStyle, TextOverflow? textOverflow, int? maxLines, Color? iconColor, double iconSize = 18, IconBooleanStyle iconStyle = IconBooleanStyle.outlined})
-
Builds a 'text-to-boolean' widget. Useful when the associated
value with a boolean value, which can be represented with an icon.
You can select outlined icons using the
outline
parameter.factory - RowItem.tap(String title, String description, {Key? key, TextStyle? titleStyle, TextStyle? descriptionStyle, TextOverflow? textOverflow, int? maxLines, VoidCallback? onTap})
-
Builds a 'text-to-text' widget. It allows the associated value,
in this case a Text widget, to be clickable by the user.
factory
- RowItem.text(String title, String description, {Key? key, TextStyle? titleStyle, TextStyle? descriptionStyle, TextOverflow? textOverflow, int? maxLines})
-
Builds a 'text-to-text' widget. Useful when the associated
value can be represented with a Text widget.
factory
Properties
- description → Widget
-
Associated value of the title parameter, localed at the right.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → Widget
-
Main text of the widget, located at the left.
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}) → 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