Tile
A specialized Item for touch devices, typically used to group related information together.
Tiles can be grouped together inside a FTileGroup.
Preview
CLI
To generate and customize this style:
dart run forui style create tile Usage
FTile(...)
FTile(
style: FTileStyle(...),
prefix: Icon(FIcons.user),
title: const Text('Title'),
subtitle: const Text('Subtitle'),
details: const Text('Details'),
suffix: Icon(FIcons.chevronRight),
semanticsLabel: 'Label',
enabled: true,
selected: false,
onFocusChange: (focused) {},
onHoverChange: (hovered) {},
onStateChange: (delta) {},
onPress: () {},
onLongPress: () {},
onSecondaryPress: () {},
onSecondaryLongPress: () {},
shortcuts: { SingleActivator(LogicalKeyboardKey.enter): ActivateIntent() },
actions: { ActivateIntent: CallbackAction<ActivateIntent>(onInvoke: (_) {}) },
);FTile.raw(...)
FTile.raw(
style: FTileStyle(...),
prefix: Icon(FIcons.user),
child: const Text('Title'),
semanticsLabel: 'Label',
enabled: true,
selected: false,
onFocusChange: (focused) {},
onHoverChange: (hovered) {},
onStateChange: (delta) {},
onPress: () {},
onLongPress: () {},
onSecondaryPress: () {},
onSecondaryLongPress: () {},
shortcuts: { SingleActivator(LogicalKeyboardKey.enter): ActivateIntent() },
actions: { ActivateIntent: CallbackAction<ActivateIntent>(onInvoke: (_) {}) },
);Examples
Untappable
Preview
Disabled
Preview
With Subtitle
Preview
With Details
Preview
Last updated on