FTile class
A tile that is typically used to group related information together.
Multiple tiles can be grouped together in a FTileGroup. Tiles grouped together will be separated by a divider, specified by a FTileDivider.
See:
- https://forui.dev/docs/tile/tile for working examples.
- FTileGroup for grouping tiles together.
- FTileStyle for customizing a tile's appearance.
- Inheritance
- Mixed-in types
Constructors
-
FTile({required Widget title, FTileStyle? style, bool? enabled, String? semanticLabel, bool autofocus = false, FocusNode? focusNode, ValueChanged<
bool> ? onFocusChange, VoidCallback? onPress, VoidCallback? onLongPress, Widget? prefixIcon, Widget? subtitle, Widget? details, Widget? suffixIcon, Key? key}) - Creates a FTile.
Properties
- autofocus → bool
-
Whether this tile should focus itself if nothing else is already focused. Defaults to false.
final
- child → Widget
-
The child.
final
- enabled → bool?
-
Whether the
FTile
is enabled. Defaults to true.final - focusNode → FocusNode?
-
Defines the FocusNode for 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
-
onFocusChange
→ ValueChanged<
bool> ? -
Handler called when the focus changes.
final
- onLongPress → VoidCallback?
-
A callback for when the tile is long pressed.
final
- onPress → VoidCallback?
-
A callback for when the tile is pressed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
The semantic label.
final
- style → FTileStyle?
-
The tile's style. Defaults to the ancestor tile group's style if present, and FThemeData.tileGroupStyle otherwise.
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, 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