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
commit 6c1a76f2ea

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(