Chat List Item
The chat list items and chat lists are used in communication feeds and contact lists.
Figma Link
- Web Components
- Flutter
Web component not available yet
Demo
Widgetbook
Inheritance
Object > DiagnosticableTree > Widget > StatelessWidget > ZetaStatelessWidget
Constructors
Creates a ZetaChatItem
ZetaChatItem.new({Key? key, bool? rounded, bool highlighted = false, DateTime? time, DateFormat? timeFormat, required Widget title, Widget? subtitle, Widget? leading, bool enabledWarningIcon = false, bool enabledNotificationIcon = false, List<Widget> additionalIcons = const [], int? count, VoidCallback? onTap, bool? starred, List<ZetaSlidableAction> slidableActions = const [], bool explicitChildNodes = true, bool? paleButtonColors})
Properties
| Name | Description | Type | Features |
|---|---|---|---|
| additionalIcons | Optional icons to be displayed on the top right corner next to warning and notification icons. | List<Widget> | final |
| count | Count displayed on the top right corner. | int? | final |
| enabledNotificationIcon | Whether to show notification icon. | bool | final |
| enabledWarningIcon | Whether to show warning icon. | bool | final |
| explicitChildNodes | Whether to show explicit child nodes in the semantics tree. | bool | final |
| hashCode | The hash code for this object. | int | no setter inherited |
| highlighted | Whether to apply different background color. | bool | final |
| key | Controls how one widget replaces another widget in the tree. | Key? | final inherited |
| leading | Normally ZetaAvatar. | Widget? | final |
| onTap | Callback to call when tap on the list tile. | VoidCallback? | final |
| paleButtonColors | Whether to apply pale color. | bool? | final |
| rounded | Sets rounded or sharp border of the containing box and the icon style. | bool? | final inherited |
| runtimeType | A representation of the runtime type of the object. | Type | no setter inherited |
| slidableActions | List of slidable actions. | List<ZetaSlidableAction> | final |
| starred | Whether the chat list is starred. | bool? | final |
| subtitle | Normally the beginning of the chat message. | Widget? | final |
| time | The time when the message is sent. It applies default date format - timeFormat. | DateTime? | final |
| timeFormat | The default date format. | DateFormat? | final |
| title | Normally the person name. | Widget | final |