TimelineOptions class

Constructors

TimelineOptions({TimelineTheme theme = const TimelineTheme(), TimelineTranslations translations = const TimelineTranslations(), ImagePickerConfig imagePickerConfig = const ImagePickerConfig(), ImagePickerTheme imagePickerTheme = const ImagePickerTheme(), double? timelinePostHeight, bool allowAllDeletion = false, bool sortCommentsAscending = true, bool? sortPostsAscending, bool doubleTapTolike = false, bool iconsWithValues = false, (Icon?, Icon?) likeAndDislikeIconsForDoubleTap = (Icon(Icons.favorite_rounded, color: Color(0xFFC3007A)), null), Widget itemInfoBuilder({required TimelinePost post})?, DateFormat? dateFormat, DateFormat? timeFormat, ButtonBuilder? buttonBuilder, TextInputBuilder? textInputBuilder, Widget dividerBuilder()?, UserAvatarBuilder? userAvatarBuilder, UserAvatarBuilder? anonymousAvatarBuilder, String nameBuilder(TimelinePosterUserModel?)?, EdgeInsets padding = const EdgeInsets.only(left: 12.0, top: 24.0, right: 12.0, bottom: 12.0), double iconSize = 26, double? postWidgetHeight, EdgeInsets postPadding = const EdgeInsets.symmetric(vertical: 12.0, horizontal: 12.0), FilterOptions filterOptions = const FilterOptions(), CategoriesOptions categoriesOptions = const CategoriesOptions(), bool requireImageForPost = false, int? minTitleLength, int? maxTitleLength, int? minContentLength, int? maxContentLength, Widget categorySelectorButtonBuilder(BuildContext context, dynamic onPressed(), String text)?, Widget postOverviewButtonBuilder(BuildContext context, dynamic onPressed(), String text)?, InputDecoration? titleInputDecoration, InputDecoration? contentInputDecoration})
const

Properties

allowAllDeletion → bool
Allow all posts to be deleted instead of only the posts of the current user
final
anonymousAvatarBuilder → UserAvatarBuilder?
When the imageUrl is null this anonymousAvatarBuilder will be used You can use it to display a default avatarW
final
buttonBuilder → ButtonBuilder?
final
categoriesOptions → CategoriesOptions
Options for using the category selector.
final
categorySelectorButtonBuilder → (Widget Function(BuildContext context, dynamic onPressed(), String text)?)
Builder for the category selector button on the timeline category selection screen
final
contentInputDecoration → InputDecoration?
inputdecoration for the content textfield
final
dateFormat → DateFormat?
The format to display the post date in
final
dividerBuilder → (Widget Function()?)
The builder for the divider
final
doubleTapTolike → bool
Whether to allow double tap to like
final
filterOptions → FilterOptions
Options for filtering
final
hashCode → int
The hash code for this object.
no setterinherited
iconSize → double
Size of icons like the comment and like icons. Dafualts to 26
final
iconsWithValues → bool
Whether to display the icons with values
final
imagePickerConfig → ImagePickerConfig
ImagePickerConfig can be used to define the size and quality for the uploaded image.
final
imagePickerTheme → ImagePickerTheme
ImagePickerTheme can be used to change the UI of the Image Picker Widget to change the text/icons to your liking.
final
itemInfoBuilder → (Widget Function({required TimelinePost post})?)
The builder for the item info, all below the like and comment buttons
final
likeAndDislikeIconsForDoubleTap → (Icon?, Icon?)
The icons to display when double tap to like is enabled
final
maxContentLength → int?
Maximum length of the post content
final
maxTitleLength → int?
Maximum length of the title
final
minContentLength → int?
Minimum length of the post content
final
minTitleLength → int?
Minimum length of the title
final
nameBuilder → (String Function(TimelinePosterUserModel?)?)
final
padding → EdgeInsets
The padding between posts in the timeline
final
postOverviewButtonBuilder → (Widget Function(BuildContext context, dynamic onPressed(), String text)?)
Builder for the post overview button on the timeline post overview screen
final
postPadding → EdgeInsets
Padding of each post
final
postWidgetHeight → double?
Sets a predefined height for the postWidget.
final
requireImageForPost → bool
Require image for post
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sortCommentsAscending → bool
Whether to sort comments ascending or descending
final
sortPostsAscending → bool?
Whether to sort posts ascending or descending
final
textInputBuilder → TextInputBuilder?
final
theme → TimelineTheme
Theming options for the timeline
final
timeFormat → DateFormat?
The format to display the post time in
final
timelinePostHeight → double?
The height of a post in the timeline
final
titleInputDecoration → InputDecoration?
inputdecoration for the title textfield
final
translations → TimelineTranslations
final
userAvatarBuilder → UserAvatarBuilder?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited