fix: App crashes on window resize in chat

pull/1925/head
krille-chan 3 months ago
parent c65c6f7e09
commit a5ceab58d3
No known key found for this signature in database

@ -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,
),
),
);
},
),
),
],

Loading…
Cancel
Save