|
|
|
@ -8,7 +8,7 @@ import 'chat_list.dart';
|
|
|
|
|
|
|
|
|
|
class StartChatFloatingActionButton extends StatelessWidget {
|
|
|
|
|
final ActiveFilter activeFilter;
|
|
|
|
|
final bool scrolledToTop;
|
|
|
|
|
final ValueNotifier<bool> scrolledToTop;
|
|
|
|
|
final bool roomsIsEmpty;
|
|
|
|
|
|
|
|
|
|
const StartChatFloatingActionButton({
|
|
|
|
@ -61,7 +61,9 @@ class StartChatFloatingActionButton extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return AnimatedContainer(
|
|
|
|
|
return ValueListenableBuilder<bool>(
|
|
|
|
|
valueListenable: scrolledToTop,
|
|
|
|
|
builder: (context, scrolledToTop, _) => AnimatedContainer(
|
|
|
|
|
duration: FluffyThemes.animationDuration,
|
|
|
|
|
curve: FluffyThemes.animationCurve,
|
|
|
|
|
width: roomsIsEmpty
|
|
|
|
@ -82,6 +84,7 @@ class StartChatFloatingActionButton extends StatelessWidget {
|
|
|
|
|
onPressed: () => _onPressed(context),
|
|
|
|
|
child: Icon(icon),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|