feat(ui): Replace 'custom' icon button with a FAB

This commit is contained in:
PapaTutuWawa 2022-12-03 20:38:05 +01:00
parent 87160e8648
commit d1d6b67fd6

View File

@ -445,16 +445,20 @@ class ConversationPageState extends State<ConversationPage> with TickerProviderS
child: ScaleTransition( child: ScaleTransition(
scale: _scrollToBottom, scale: _scrollToBottom,
alignment: FractionalOffset.center, alignment: FractionalOffset.center,
child: Ink( child: SizedBox(
decoration: ShapeDecoration( width: 45,
color: Theme.of(context).scaffoldBackgroundColor, height: 45,
shape: const CircleBorder(), child: FloatingActionButton(
), heroTag: 'fabScrollDown',
child: IconButton( backgroundColor: Theme.of(context).scaffoldBackgroundColor,
icon: const Icon(Icons.arrow_downward),
onPressed: () { onPressed: () {
_scrollController.jumpTo(0); _scrollController.jumpTo(0);
}, },
child: const Icon(
Icons.arrow_downward,
// TODO(Unknown): Theme dependent
color: Colors.white,
),
), ),
), ),
), ),