LMChatMenuItem
File location
menu_item.dart
LMChatMenuItem
represents an individual item within a chat menu. It supports a title, optional leading widget, and a tap callback for interaction.
Properties
leading
(Widget?
)
An optional widget displayed before the title.title
(Widget
)
The title widget of the menu item.onTap
(VoidCallback
)
Callback function triggered when the menu item is tapped.
Note: These properties are only a subset. More can be found inside the widget class.
Styling
LMChatMenuItemStyle
File location
menu_item.dart
LMChatMenuItemStyle
allows customization of the appearance of menu items. This can include padding, margin, or background configuration (details can be extended as needed).
Example Usage
final menuItem = LMChatMenuItem(
leading: Icon(Icons.reply),
title: Text('Reply'),
onTap: () => print('Reply selected'),
);