Skip to main content

Post Footer

Overview

LMPostFooter is responsible for rendering the footer section of a post, including interactive elements like likes, comments, and shares, providing a way for users to engage with the post.

LMFeedPostFooterView

Customisation

The LMFeedContextStyles class allows you to customize the appearance of the LMPostContent. You can set the styles in footer inside of postListStyle in LMFeedContextStyles.

PropertyTypeDescription
showBookMarkIconbooleanDetermines whether to show the bookmark icon.
showShareIconbooleanDetermines whether to show the share icon.
saveButtonSaveButtonConfiguration for the save button.
shareButtonShareButtonConfiguration for the share button.
likeIconButtonLikeIconButtonConfiguration for the like icon button.
likeTextButtonLikeTextButtonConfiguration for the like text button.
commentButtonCommentButtonConfiguration for the comment button.
footerBoxStyleViewStyleStyle for the footer container.

SaveButton

PropertyTypeDescription
textLMTextPropsText properties for the save button.
iconLMIconPropsIcon properties for the save button.
onTapFunctionCallback function triggered on tap.
placement"start" or "end"Determines icon text placement.
activeIconLMIconPropsIcon properties for the active state.
activeTextLMTextPropsText properties for the active state.
buttonStyleViewStyleStyle for the save button.
isClickablebooleanDetermines if the button is clickable.

ShareButton

PropertyTypeDescription
textLMTextPropsText properties for the share button.
iconLMIconPropsIcon properties for the share button.
onTapFunctionCallback function triggered on tap.
placement"start" or "end"Determines icon text placement.
activeIconLMIconPropsIcon properties for the active state.
activeTextLMTextPropsText properties for the active state.
buttonStyleViewStyleStyle for the share button.
isClickablebooleanDetermines if the button is clickable.

LikeIconButton

PropertyTypeDescription
iconLMIconPropsIcon properties for the like button.
activeIconLMIconPropsIcon properties for the active state.
onTapFunctionCallback function triggered on tap.
buttonStyleViewStyleStyle for the like button.
isClickablebooleanDetermines if the button is clickable.

LikeTextButton

PropertyTypeDescription
textTextStyleStyle for the text in the like button.
onTapFunctionCallback function triggered on tap.
buttonStyleViewStyleStyle for the like text button.
isClickablebooleanDetermines if the button is clickable.

CommentButton

PropertyTypeDescription
textTextStyleStyle for the text in the comment button.
iconLMIconPropsIcon properties for the comment button.
onTapFunctionCallback function triggered on tap.
placement"start" or "end"Determines icon text placement.
buttonStyleViewStyleStyle for the comment button.
isClickablebooleanDetermines if the button is clickable.