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

View File

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