chore: ScrollToEventId duration for jump in timeline

This commit is contained in:
Krille 2023-03-31 12:18:24 +02:00
commit e7b0f02d2d
2 changed files with 6 additions and 3 deletions

View file

@ -345,8 +345,10 @@ class ChatView extends StatelessWidget {
child: Center(
child: FloatingActionButton.extended(
icon: const Icon(Icons.arrow_upward_outlined),
onPressed: () => controller
.scrollToEventId(controller.room.fullyRead),
onPressed: () => controller.scrollToEventId(
controller.room.fullyRead,
duration: Duration.zero,
),
label: Row(
mainAxisSize: MainAxisSize.min,
children: [