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

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(