LMChatDocumentTile
File location
tile.dart
LMChatDocumentTile
displays a tile for a document within the chat interface, supporting title, subtitle, and icons with flexible styling options.
Properties
media
(LMChatMediaModel
)
The document to display in the tile.title
(Widget?
)
An optional title widget for the document.style
(LMChatDocumentTileStyle?
)
Controls the appearance of the document tile.
Note: These properties are only a subset. More can be found inside the widget class.
Styling
LMChatDocumentTileStyle
File location
tile.dart
LMChatDocumentTileStyle
defines the appearance of the document tile, including layout, padding, colors, and icon styles.
Property | Type | Description | Required | Default |
---|---|---|---|---|
height | double? | Height of the tile | No | 100.0 |
borderRadius | BorderRadius? | Border radius of the tile | No | 8.0 |
backgroundColor | Color? | Background color of the tile | No | Colors.white |
Note: These properties are only a subset. More can be found inside the style class.
Example Usage
final documentTile = LMChatDocumentTile(
media: mediaData,
title: Text('Document Title'),
style: LMChatDocumentTileStyle(
height: 120.0,
borderRadius: BorderRadius.circular(8.0),
backgroundColor: Colors.white,
),
);