Skip to main content

Post Header

Overview

LMPostHeader renders the header section of a post, displaying key information such as the author's name, profile picture, and the post's timestamp, providing context and identification for the post.

LMFeedPostHeaderView

Customisation

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

PropertyTypeDescription
profilePictureProfilePictureConfiguration for the profile picture display.
titleTextTextStyleStyle for the title text.
createdAtTextStyleStyle for the created at timestamp.
pinIconLMIconPropsIcon properties for the pinned post indicator.
menuIconLMIconPropsIcon properties for the menu icon.
showMemberStateLabelbooleanDetermines whether to show the member state label.
memberStateViewStyleViewStyleStyle for the member state label view.
memberStateTextStyleTextStyleStyle for the member state label text.
postHeaderViewStyleViewStyleStyle for the overall post header container.
showMenuIconbooleanDetermines whether to show the menu icon.
onTapFunctionCallback function triggered on tapping the header.
postMenuPostMenuConfiguration for the post menu.

ProfilePicture

PropertyTypeDescription
fallbackTextStyleTextStyleStyle for the fallback text if the profile picture is unavailable.
sizenumberSize of the profile picture.
onTapFunctionCallback function triggered on tapping the profile picture.
fallbackTextBoxStyleViewStyleStyle for the container of the fallback text.
profilePictureStyleImageStyleStyle for the profile picture itself.

PostMenu

PropertyTypeDescription
menuItemTextStyleTextStyleStyle for the text of menu items.
menuViewStyleViewStyleStyle for the menu container.
backdropColorstringColor of the backdrop when the menu is displayed.