From 000e595d8bff238d05feafc6541aab64c34f4d91 Mon Sep 17 00:00:00 2001 From: Krille Date: Sat, 3 Jun 2023 17:49:13 +0200 Subject: [PATCH] refactor: Use AnimatedSize for FAB --- lib/pages/chat_list/start_chat_fab.dart | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/pages/chat_list/start_chat_fab.dart b/lib/pages/chat_list/start_chat_fab.dart index 5ad7f064..f743ccf1 100644 --- a/lib/pages/chat_list/start_chat_fab.dart +++ b/lib/pages/chat_list/start_chat_fab.dart @@ -63,14 +63,10 @@ class StartChatFloatingActionButton extends StatelessWidget { Widget build(BuildContext context) { return ValueListenableBuilder( 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),