FTile constructor
FTile({
- required Widget title,
- FItemStyle style(
- FItemStyle style
- bool? enabled,
- bool selected = false,
- String? semanticsLabel,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - ValueChanged<
bool> ? onHoverChange, - ValueChanged<
FWidgetStatesDelta> ? onStateChange, - VoidCallback? onPress,
- VoidCallback? onLongPress,
- VoidCallback? onSecondaryPress,
- VoidCallback? onSecondaryLongPress,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - Widget? prefix,
- Widget? subtitle,
- Widget? details,
- Widget? suffix,
- Key? key,
Creates a FTile.
Assuming LTR locale:
-----------------------------------------------------
| [prefix] [title] [details] [suffix] |
| [subtitle] |
-----------------------------------------------------
The order is reversed for RTL locales.
Overflow behavior
FTile has custom layout behavior to handle overflow of its content. If details is text, it is truncated,
else title and subtitle are truncated.
Why isn't my title subtitle, or details rendered?
Using widgets that try to fill the available space, such as Expanded or FTextField, as details will cause
the title and subtitle to never be rendered.
Use FTile.raw in these cases.
Implementation
FTile({
required Widget title,
this.style,
this.enabled,
this.selected = false,
this.semanticsLabel,
this.autofocus = false,
this.focusNode,
this.onFocusChange,
this.onHoverChange,
this.onStateChange,
this.onPress,
this.onLongPress,
this.onSecondaryPress,
this.onSecondaryLongPress,
this.shortcuts,
this.actions,
Widget? prefix,
Widget? subtitle,
Widget? details,
Widget? suffix,
super.key,
}) : _child = FItem(
title: title,
style: style,
enabled: enabled,
selected: selected,
semanticsLabel: semanticsLabel,
autofocus: autofocus,
focusNode: focusNode,
onFocusChange: onFocusChange,
onHoverChange: onHoverChange,
onStateChange: onStateChange,
onPress: onPress,
onLongPress: onLongPress,
onSecondaryPress: onSecondaryPress,
onSecondaryLongPress: onSecondaryLongPress,
shortcuts: shortcuts,
actions: actions,
prefix: prefix,
subtitle: subtitle,
details: details,
suffix: suffix,
);