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

Loading…
Cancel
Save