likeminds_feed_flutter_ui library

Classes

EmailElement
Represents an element containing an email address
EmailLinkifier
LikeMindsTheme
LinkableElement
Linkifier
LinkifyElement
LinkifyOptions
LMActivityEntityViewData
LMActivityEntityViewDataBuilder
LMAttachmentMetaViewData
A class representing the metadata for an attachment.
LMAttachmentMetaViewDataBuilder
LMAttachmentViewData
Class representing the view data for an attachment.
LMAttachmentViewDataBuilder
Builder class for LMAttachmentViewData.
LMCommentViewData
LMCommentViewDataBuilder
LMDeleteReasonViewData
A data class to hold the delete reason data.
LMDeleteReasonViewDataBuilder
A builder class to build LMDeleteReasonViewData
LMFeedAppBar
LMFeedAppBarStyle
LMFeedBottomSheet
LMFeedBottomSheetStyle
LMFeedButton
LMFeedButtonStyle
LMFeedCarousel
LMFeedCommentStyle
LMFeedCommentWidget
LMFeedComposeMediaStyle
LMFeedDialog
LMFeedDialogStyle
LMFeedDocument
LMFeedDocumentShimmer
LMFeedExpandableText
LMFeedExpandableTextState
LMFeedGetPostVideoControllerRequest
LMFeedGetPostVideoControllerRequestBuilder
LMFeedGetPostVideoControllerResponse
LMFeedIcon
A simple icon widget to be used throughout the feed Represents three types of icons - icon, png, svg Provides customisability through LMFeedIconStyle
LMFeedIconStyle
LMFeedImage
A widget to display an image in a post. The image can be fetched from a URL or from a file. The LMFeedImage can be customized by passing in the required parameters and can be used in a post. The image can be tapped to perform an action. The image can be customized by passing in the required parameters and can be used in a post.
LMFeedLinkPreview
LMFeedLoader
LMFeedLoaderStyle
LMFeedMenu
LMFeedMenu is a stateless widget that represents a menu in the feed. It includes a list of menu items, a map of child widgets for each menu item, a set of menu item IDs to be removed, an action to be performed when a menu item is selected, a style for the menu, and callbacks for when the menu is tapped and opened. /// Example usage:
LMFeedMenuAction
LMFeedMenuItemStyle
LMFeedMenuStyle
LMFeedPoll
LMFeedPollOptionStyle
LMFeedPollStyle
LMFeedPopUpMenuStyle
LMFeedPostCarouselStyle
LMFeedPostContent
LMFeedPostContentStyle
LMFeedPostDocumentStyle
LMFeedPostFooter
LMFeedPostFooterStyle
LMFeedPostHeader
LMFeedPostHeaderStyle
LMFeedPostImageStyle
LMFeedPostLinkPreviewStyle
LMFeedPostMedia
LMFeedPostMediaStyle
LMFeedPostReviewBanner
A widget that displays a post review banner. Provide a style, onInfoIconClicked, postReviewStatus, reviewStatusIcon, infoIcon, reviewStatusText to customize the post review banner.
LMFeedPostReviewBannerStyle
A class that provides styling for LMFeedPostReviewBanner. Provide a reviewStatusTextStyle, reviewStatusIconStyle, infoIconStyle to customize the LMFeedPostReviewBanner.
LMFeedPostStyle
Represents the style of a feed post in the LM app.
LMFeedPostTopic
LMFeedPostTopicStyle
LMFeedPostVideoStyle
A class representing the style configuration for a video post in the LM feed.
LMFeedPostWidget
A widget that displays a feed post in the LM app.
LMFeedProfilePicture
LMFeedProfilePictureStyle
LMFeedRoomViewData
LMFeedRoomViewDataBuilder
LMFeedShimmer
LMFeedSnackBar
LMFeedSnackBarStyle
LMFeedTaggingHelper
LMFeedText
A simple text widget to be used throughout the Feed experience Provides high level customisability through LMFeedTextStyle Also, can add onTap functionality
LMFeedTextFieldStyle
LMFeedTextStyle
class representing style for a LMFeedText
LMFeedTheme
LMFeedThemeData
LMFeedTile
LMFeedTileShimmer
LMFeedTileStyle
LMFeedTimeAgo
LMFeedTimeAgoMessages
LookupMessages template for any language
LMFeedTimeMessages
English Messages
LMFeedTimeShortMessages
English short Messages
LMFeedTopicBar
LMFeedTopicBarStyle
LMFeedTopicChip
LMFeedTopicChipStyle
LMFeedTopicFeedGrid
LMFeedTopicTile
LMFeedUserTile
LMFeedUserTileShimmer
LMFeedVideo
A widget that displays a video in a feed post with customizable controls and styles.
LMFeedVideoProvider
LMVideoProvider is a singleton class that provides video controllers for post with videos. It also manages the lifecycle of the video controllers. Any Controller that goes out of scope is disposed by the LMVideoProvider.
LMGroupTagViewData
LMGroupTagViewDataBuilder
LMLikeViewData
LMLikeViewDataBuilder
LMNotificationFeedItemViewData
LMNotificationFeedItemViewDataBuilder
LMOgTagsViewData
LMOgTagsViewDataBuilder
LMPollOptionViewData
LMPopUpMenuItemViewData
LMPopUpMenuItemViewDataBuilder
LMPostMediaShimmer
LMPostMediaShimmerStyle
LMPostOptionViewDataBuilder
LMPostUploadingBanner
LMPostUploadingBannerStyle
LMPostViewData
A data class to hold the post data.
LMPostViewDataBuilder
LMSDKClientInfoViewData
LMSDKClientInfoViewDataBuilder
LMTopicViewData
LMTopicViewDataBuilder
LMUserTagViewData
LMUserTagViewDataBuilder
LMUserViewData
A data class to hold the user data.
LMUserViewDataBuilder
A builder class to build LMUserViewData
LMWidgetViewData
LMWidgetViewDataBuilder
PostHelper
TextElement
Represents an element containing text
UrlElement
Represents an element containing a link
UrlLinkifier

Enums

LMFeedAlignment
enum to describe alignment in context to LM widgets
LMFeedIconButtonPlacement
enum to describe placement of icon inside of LMFeedButton
LMFeedIconType
enum to describe type of icon for any LMFeedIcon
LMFeedPostActions
enum to describe actions possible on a post
LMFeedPostActionType
enum to describe the type of action on a post
LMFeedPostDeleteViewType
LMFeedPostLikesListViewType
enum to describe type of list for LMFeedPostLikesList
LMFeedPostMenuType
enum to describe type of menu for LMFeedPostMenu
LMFeedVideoSourceType
LMMediaType
Enum representing different types of media attachments.
LMPostReviewStatus
An enum that defines the post review status. rejected - Post is rejected and needs to be edited, pending - Post is pending
PollMultiSelectState
PollType

Functions

extractLinkAndEmailFromString(String text) LinkifyElement?
extractLinkFromString(String text) List<String>
getFirstValidLinkFromString(String text) String
getInitials(String name) String
linkify(String text, {LinkifyOptions options = const LinkifyOptions(), List<Linkifier> linkifiers = defaultLinkifiers}) List<LinkifyElement>
Turns text into a list of LinkifyElement
mapIntToMediaType(int attachmentType) LMMediaType
Maps an integer to its corresponding LMMediaType.
pollMultiSelectStateFromString(String value) PollMultiSelectState
pollTypeFromString(String value) PollType
voteText(int voteCount) String

Typedefs

LMFeedAppBarBuilder = PreferredSizeWidget Function(BuildContext, LMFeedAppBar)
Builder function to build the post appbar. must return a PreferredSizeWidget, takes in BuildContext and LMFeedAppBar as params.
LMFeedButtonBuilder = Widget Function(LMFeedButton)
Builder function to build the button widget. must return a widget, takes in LMFeedButton as params
LMFeedCarouselIndicatorBuilder = Widget Function(BuildContext, int, int, Widget)
Builder function to build the carousel indicator widget. must return a widget, takes in BuildContext, int, int, and Widget as params int is the current index of the carousel
LMFeedContextBuilder = Widget Function(BuildContext context)
Builder function to build the feed context widget. must return a widget, takes in BuildContext as params
LMFeedErrorHandler = dynamic Function(String, StackTrace)
A callback to handle errors in the feed.
LMFeedImageBuilder = Widget Function(LMFeedImage)
Builder function to build the image widget. must return a widget, takes in LMFeedImage as params
LMFeedLoaderBuilder = Widget Function(BuildContext context)
Builder function to build the loader widget. must return a widget, takes in BuildContext and LMFeedLoader as params
LMFeedOnPostTap = void Function(BuildContext, LMPostViewData)
A callback to handle interactions with the post.
LMFeedOnTagTap = void Function(String)
A callback to handle tag tap in the feed.
LMFeedPollBuilder = Widget Function(BuildContext, LMFeedPoll)
Builder function to build the poll widget. must return a widget, takes in BuildContext and LMFeedPoll as params
LMFeedPostCommentBuilder = Widget Function(BuildContext, LMFeedCommentWidget, LMPostViewData)
Builder function to build the post comment. must return a widget, takes in BuildContext, LMFeedCommentWidget, and LMPostViewData as params.
LMFeedPostContentBuilder = Widget Function(BuildContext, LMFeedPostContent, LMPostViewData)
Builder function to build the post widget. must return a widget, takes in BuildContext, LMFeedPostContent, and LMPostViewData as params
LMFeedPostFooterBuilder = Widget Function(BuildContext, LMFeedPostFooter, LMPostViewData)
Builder function to build the post footer. i.e. like, comment, share, save buttons must return a widget, takes in BuildContext, LMFeedPostFooter, and LMPostViewData as params
LMFeedPostHeaderBuilder = Widget Function(BuildContext, LMFeedPostHeader, LMPostViewData)
Builder function to build the post header. i.e. user image, name, time, menu button must return a widget, takes in BuildContext, LMFeedPostHeader, and LMPostViewData as params
LMFeedPostMediaBuilder = Widget Function(BuildContext, LMFeedPostMedia, LMPostViewData)
Builder function to build the post widget. must return a widget, takes in BuildContext, LMFeedPostMedia, and LMPostViewData as params
LMFeedPostMenuBuilder = Widget Function(BuildContext, LMFeedMenu, LMPostViewData)
Builder function to build the post widget. i.e. edit, delete, report, pin etc. must return a widget, takes in BuildContext, LMFeedMenu, and LMPostViewData as params
LMFeedPostReviewBannerBuilder = Widget Function(BuildContext, LMFeedPostReviewBanner, LMPostViewData)
Builder function to build the post widget review banner. must return a widget, takes in BuildContext, LMFeedPostReviewBanner, and LMPostViewData as params
LMFeedPostTopicBuilder = Widget Function(BuildContext, LMFeedPostTopic, LMPostViewData)
Builder function to build the topic widget. must return a widget, takes in BuildContext, LMFeedPostTopic, and LMPostViewData as params
LMFeedPostWidgetBuilder = Widget Function(BuildContext, LMFeedPostWidget, LMPostViewData)
Builder function to build the post widget. must return a widget, takes in BuildContext, LMFeedPostWidget, and LMPostViewData as params
LMFeedProfilePictureBuilder = Widget Function(BuildContext context, LMFeedProfilePicture profilePicture)
Builder function to build the profile picture widget. must return a widget, takes in BuildContext and LMFeedProfilePicture as params
LMFeedRoomTileBuilder = Widget Function(BuildContext context, LMFeedRoomViewData viewData, LMFeedTile oldWidget)
Builder function to build the room tile widget. must return a widget, takes in BuildContext, LMFeedRoomViewData, and LMFeedTile as params
LMFeedTextBuilder = Widget Function(BuildContext, LMFeedText)
Builder function to build the text widget. must return a widget, takes in BuildContext and LMFeedText as params
LMFeedTopicBarBuilder = Widget Function(LMFeedTopicBar topicBar)
Builder function to build the topic bar widget. must return a widget, takes in LMFeedTopicBar as params
LMFeedVideoBuilder = Widget Function(LMFeedVideo)
Builder function to build the video widget. must return a widget, takes in LMFeedVideo as params
StringCallback = void Function(String value)