Merge branch 'fix-scrolldown' into 'main'

Show scrollDownButton if selectedEvents is empty

Closes #558

See merge request famedly/fluffychat!630
This commit is contained in:
Krille Fear 2021-12-22 09:03:25 +00:00
commit ea3216201d

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(