fix: App crashes on window resize in chat

This commit is contained in:
krille-chan 2025-05-25 14:01:40 +02:00
commit a5ceab58d3
No known key found for this signature in database

View file

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