|
|
|
@ -1360,21 +1360,17 @@ class ChatController extends State<ChatPageWithRoom>
|
|
|
|
|
Expanded(
|
|
|
|
|
child: ChatView(this),
|
|
|
|
|
),
|
|
|
|
|
AnimatedSize(
|
|
|
|
|
duration: FluffyThemes.animationDuration,
|
|
|
|
|
curve: FluffyThemes.animationCurve,
|
|
|
|
|
child: ValueListenableBuilder(
|
|
|
|
|
ValueListenableBuilder(
|
|
|
|
|
valueListenable: _displayChatDetailsColumn,
|
|
|
|
|
builder: (context, displayChatDetailsColumn, _) {
|
|
|
|
|
if (!FluffyThemes.isThreeColumnMode(context) ||
|
|
|
|
|
builder: (context, displayChatDetailsColumn, _) =>
|
|
|
|
|
!FluffyThemes.isThreeColumnMode(context) ||
|
|
|
|
|
room.membership != Membership.join ||
|
|
|
|
|
!displayChatDetailsColumn) {
|
|
|
|
|
return const SizedBox(
|
|
|
|
|
!displayChatDetailsColumn
|
|
|
|
|
? const SizedBox(
|
|
|
|
|
height: double.infinity,
|
|
|
|
|
width: 0,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return Container(
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
width: FluffyThemes.columnWidth,
|
|
|
|
|
clipBehavior: Clip.hardEdge,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
@ -1392,8 +1388,6 @@ class ChatController extends State<ChatPageWithRoom>
|
|
|
|
|
onPressed: toggleDisplayChatDetailsColumn,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|