LMChatDocumentThumbnail
File location
thumbnail.dart
LMChatDocumentThumbnail displays a thumbnail representation of a document within the chat interface, supporting overlays and custom styles.
Properties
media(LMChatMediaModel)
The media content for the document thumbnail.overlay(LMChatDocumentTile?)
An optional overlay widget for the thumbnail.style(LMChatDocumentThumbnailStyle?)
Customizes the appearance of the document thumbnail.
Note: These properties are only a subset. More can be found inside the widget class.
Styling
LMChatDocumentThumbnailStyle
File location
thumbnail.dart
LMChatDocumentThumbnailStyle defines the visual aspects of the document thumbnail, including size, border, and padding.
| Property | Type | Description | Required | Default |
|---|---|---|---|---|
height | double? | Height of the thumbnail | No | 100.0 |
borderRadius | BorderRadius? | Border radius of the thumbnail | No | 8.0 |
backgroundColor | Color? | Background color of the thumbnail | No | Colors.white |
Note: These properties are only a subset. More can be found inside the style class.
Example Usage
final documentThumbnail = LMChatDocumentThumbnail(
media: mediaData,
showOverlay: true,
style: LMChatDocumentThumbnailStyle(
height: 100.0,
borderRadius: BorderRadius.circular(8.0),
backgroundColor: Colors.white,
),
);