chore: Follow up scrolldownbutton style

This commit is contained in:
Krille 2023-06-04 11:14:06 +02:00
parent 908d428220
commit cacab45fe3
No known key found for this signature in database

View File

@ -191,14 +191,13 @@ class ChatView extends StatelessWidget {
title: ChatAppBarTitle(controller), title: ChatAppBarTitle(controller),
actions: _appBarActions(context), actions: _appBarActions(context),
), ),
floatingActionButtonLocation:
FloatingActionButtonLocation.centerFloat,
floatingActionButton: controller.showScrollDownButton && floatingActionButton: controller.showScrollDownButton &&
controller.selectedEvents.isEmpty controller.selectedEvents.isEmpty
? Padding( ? Padding(
padding: const EdgeInsets.only(bottom: 56.0), padding: const EdgeInsets.only(bottom: 56.0),
child: FloatingActionButton( child: FloatingActionButton(
onPressed: controller.scrollDown, onPressed: controller.scrollDown,
heroTag: null,
mini: true, mini: true,
child: const Icon(Icons.arrow_downward_outlined), child: const Icon(Icons.arrow_downward_outlined),
), ),