ChatAnimatedListReversed class

An animated list widget specifically designed for displaying chat messages, growing from bottom to top (reversed).

This is a convenience wrapper around ChatAnimatedList with reversed set to true. See ChatAnimatedList for detailed documentation of all parameters.

Inheritance

Constructors

ChatAnimatedListReversed.new({Key? key, required ChatItem itemBuilder, ScrollController? scrollController, Duration insertAnimationDuration = const Duration(milliseconds: 250), Duration removeAnimationDuration = const Duration(milliseconds: 250), MessageAnimationDurationResolver? insertAnimationDurationResolver, MessageAnimationDurationResolver? removeAnimationDurationResolver, Duration scrollToEndAnimationDuration = const Duration(milliseconds: 250), Duration scrollToBottomAppearanceDelay = const Duration(milliseconds: 250), double? topPadding = 8, double? bottomPadding = 20, Widget? topSliver, Widget? bottomSliver, bool? handleSafeArea = true, ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.onDrag, bool? shouldScrollToEndWhenSendingMessage = true, PaginationCallback? onEndReached, double? paginationThreshold = 0.2, MessagesGroupingMode? messagesGroupingMode, int? messageGroupingTimeoutInSeconds, ScrollPhysics? physics})
Creates a reversed animated chat list.
const

Properties

bottomPadding double?
Padding added below the last item (visually the top-most, before the composer).
final
bottomSliver Widget?
Optional sliver widget to place at the very bottom (visually top) of the scroll view.
final
handleSafeArea bool?
Whether to handle bottom safe area padding automatically.
final
hashCode int
The hash code for this object.
no setterinherited
insertAnimationDuration Duration
Default duration for message insertion animations.
final
insertAnimationDurationResolver MessageAnimationDurationResolver?
Optional function to resolve custom insertion animation duration per message.
final
itemBuilder ChatItem
Builder function for creating individual chat message widgets.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardDismissBehavior ScrollViewKeyboardDismissBehavior?
How the scroll view should dismiss the keyboard.
final
messageGroupingTimeoutInSeconds int?
Timeout in seconds for grouping consecutive messages from the same author.
final
messagesGroupingMode MessagesGroupingMode?
The mode to use for grouping messages.
final
onEndReached PaginationCallback?
Callback triggered when the user scrolls near the top (visually bottom), requesting older messages.
final
paginationThreshold double?
Threshold (0.0 to 1.0) from the top (visually bottom) to trigger onEndReached. Defaults to 0.2. See note below.
final
physics ScrollPhysics?
Physics for the scroll view.
final
removeAnimationDuration Duration
Default duration for message removal animations.
final
removeAnimationDurationResolver MessageAnimationDurationResolver?
Optional function to resolve custom removal animation duration per message.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
Optional scroll controller for the underlying CustomScrollView.
final
scrollToBottomAppearanceDelay Duration
Delay before the scroll-to-bottom button appears after scrolling up.
final
scrollToEndAnimationDuration Duration
Duration for scrolling to the end/bottom of the list.
final
shouldScrollToEndWhenSendingMessage bool?
Whether to automatically scroll to the end (bottom) when a new message is sent (inserted).
final
topPadding double?
Padding added above the first item (visually the bottom-most).
final
topSliver Widget?
Optional sliver widget to place at the very top (visually bottom) of the scroll view.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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