💄 Animated chat history
This commit is contained in:
parent
ec69b34877
commit
9df4aba56c
@ -169,13 +169,17 @@ class _ChatScreenWidgetState extends State<ChatScreenWidget> {
|
|||||||
right: 12,
|
right: 12,
|
||||||
),
|
),
|
||||||
child: ChatMessage(
|
child: ChatMessage(
|
||||||
key: Key('m${item.id}'),
|
|
||||||
item: item,
|
item: item,
|
||||||
underMerged: isMerged,
|
underMerged: isMerged,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
onLongPress: () => viewActions(item),
|
onLongPress: () => viewActions(item),
|
||||||
);
|
).animate(key: Key('m${item.id}'), autoPlay: true).slideY(
|
||||||
|
curve: Curves.fastEaseInToSlowEaseOut,
|
||||||
|
duration: 350.ms,
|
||||||
|
begin: 0.25,
|
||||||
|
end: 0,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_isReady) {
|
if (!_isReady) {
|
||||||
@ -219,7 +223,7 @@ class _ChatScreenWidgetState extends State<ChatScreenWidget> {
|
|||||||
pagingController: _pagingController,
|
pagingController: _pagingController,
|
||||||
builderDelegate: PagedChildBuilderDelegate<Message>(
|
builderDelegate: PagedChildBuilderDelegate<Message>(
|
||||||
animateTransitions: true,
|
animateTransitions: true,
|
||||||
transitionDuration: 500.ms,
|
transitionDuration: 350.ms,
|
||||||
itemBuilder: chatHistoryBuilder,
|
itemBuilder: chatHistoryBuilder,
|
||||||
noItemsFoundIndicatorBuilder: (_) => Container(),
|
noItemsFoundIndicatorBuilder: (_) => Container(),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user