Skip to main content

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

  1. media (LMChatMediaModel)
    The document to display in the tile.

  2. title (Widget?)
    An optional title widget for the document.

  3. 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.

PropertyTypeDescriptionRequiredDefault
heightdouble?Height of the tileNo100.0
borderRadiusBorderRadius?Border radius of the tileNo8.0
backgroundColorColor?Background color of the tileNoColors.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,
),
);