fix: Show scrollDownButton only if selectedEvents is empty

This commit is contained in:
S1m 2021-12-22 09:03:24 +00:00 committed by Krille Fear
parent 1c3e0e4d1e
commit 3e2d28d21e
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ class ChatView extends StatelessWidget {
title: ChatAppBarTitle(controller),
actions: _appBarActions(context),
),
floatingActionButton: controller.showScrollDownButton
floatingActionButton: controller.showScrollDownButton &&
controller.selectedEvents.isEmpty
? Padding(
padding: const EdgeInsets.only(bottom: 56.0),
child: FloatingActionButton(