|
|
|
@ -1360,41 +1360,35 @@ class ChatController extends State<ChatPageWithRoom>
|
|
|
|
|
Expanded(
|
|
|
|
|
child: ChatView(this),
|
|
|
|
|
),
|
|
|
|
|
AnimatedSize(
|
|
|
|
|
duration: FluffyThemes.animationDuration,
|
|
|
|
|
curve: FluffyThemes.animationCurve,
|
|
|
|
|
child: ValueListenableBuilder(
|
|
|
|
|
valueListenable: _displayChatDetailsColumn,
|
|
|
|
|
builder: (context, displayChatDetailsColumn, _) {
|
|
|
|
|
if (!FluffyThemes.isThreeColumnMode(context) ||
|
|
|
|
|
room.membership != Membership.join ||
|
|
|
|
|
!displayChatDetailsColumn) {
|
|
|
|
|
return const SizedBox(
|
|
|
|
|
height: double.infinity,
|
|
|
|
|
width: 0,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return Container(
|
|
|
|
|
width: FluffyThemes.columnWidth,
|
|
|
|
|
clipBehavior: Clip.hardEdge,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
border: Border(
|
|
|
|
|
left: BorderSide(
|
|
|
|
|
width: 1,
|
|
|
|
|
color: theme.dividerColor,
|
|
|
|
|
ValueListenableBuilder(
|
|
|
|
|
valueListenable: _displayChatDetailsColumn,
|
|
|
|
|
builder: (context, displayChatDetailsColumn, _) =>
|
|
|
|
|
!FluffyThemes.isThreeColumnMode(context) ||
|
|
|
|
|
room.membership != Membership.join ||
|
|
|
|
|
!displayChatDetailsColumn
|
|
|
|
|
? const SizedBox(
|
|
|
|
|
height: double.infinity,
|
|
|
|
|
width: 0,
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
width: FluffyThemes.columnWidth,
|
|
|
|
|
clipBehavior: Clip.hardEdge,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
border: Border(
|
|
|
|
|
left: BorderSide(
|
|
|
|
|
width: 1,
|
|
|
|
|
color: theme.dividerColor,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: ChatDetails(
|
|
|
|
|
roomId: roomId,
|
|
|
|
|
embeddedCloseButton: IconButton(
|
|
|
|
|
icon: const Icon(Icons.close),
|
|
|
|
|
onPressed: toggleDisplayChatDetailsColumn,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: ChatDetails(
|
|
|
|
|
roomId: roomId,
|
|
|
|
|
embeddedCloseButton: IconButton(
|
|
|
|
|
icon: const Icon(Icons.close),
|
|
|
|
|
onPressed: toggleDisplayChatDetailsColumn,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|