feat(ui): Replace 'custom' icon button with a FAB
This commit is contained in:
parent
87160e8648
commit
d1d6b67fd6
@ -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,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user