mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-18 10:52:34 +01:00
refactor: Use AnimatedSize for FAB
This commit is contained in:
parent
299aac134d
commit
5039f1ba3b
@ -63,14 +63,10 @@ class StartChatFloatingActionButton extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return ValueListenableBuilder<bool>(
|
||||
valueListenable: scrolledToTop,
|
||||
builder: (context, scrolledToTop, _) => AnimatedContainer(
|
||||
builder: (context, scrolledToTop, _) => AnimatedSize(
|
||||
duration: FluffyThemes.animationDuration,
|
||||
curve: FluffyThemes.animationCurve,
|
||||
width: roomsIsEmpty
|
||||
? null
|
||||
: scrolledToTop
|
||||
? 144
|
||||
: 56,
|
||||
clipBehavior: Clip.none,
|
||||
child: scrolledToTop
|
||||
? FloatingActionButton.extended(
|
||||
onPressed: () => _onPressed(context),
|
||||
|
Loading…
Reference in New Issue
Block a user