PensilPostFeedListView constructor
const
PensilPostFeedListView({
- Key? key,
- OnHashtagTap? onHashtagTap,
- OnMentionTap? onMentionTap,
- OnUserTap? onUserTap,
- PostContentBuilder? postContentBuilder,
- PostHeaderBuilder? postHeaderBuilder,
- required String sectionId,
- PostBuilder? postBuilder,
- Widget onProgressWidget = const ProgressStateWidget(),
- Widget onErrorWidget = const ErrorStateWidget(),
- Widget onEmptyWidget = const EmptyStateWidget(message: 'No post to display'),
- OnPostTap? onPostTap,
- TransitionType transitionType = TransitionType.material,
- ScrollPhysics? scrollPhysics,
Display a list of post.
postFooterBuilder
is a builder for the footer of the post.
postHeaderBuilder
is a builder for the header of the post.
postContentBuilder
is a builder for the body of the post.
postBuilder
is a builder for complete post.
onPostTap
is a callback for when a post is tapped.
onUserTap
is a callback for when a user avatar is tapped.
Implementation
const PensilPostFeedListView({
Key? key,
this.onHashtagTap,
this.onMentionTap,
this.onUserTap,
this.postFooterBuilder,
this.postContentBuilder,
this.postHeaderBuilder,
required this.sectionId,
this.postBuilder,
this.onProgressWidget = const ProgressStateWidget(),
this.onErrorWidget = const ErrorStateWidget(),
this.onEmptyWidget = const EmptyStateWidget(message: 'No post to display'),
this.onPostTap,
this.transitionType = TransitionType.material,
this.scrollPhysics,
}) : super(key: key);