fixed list view breaking layout

This commit is contained in:
2026-02-01 17:16:42 +01:00
parent f6933b6529
commit a52817231e
2 changed files with 50 additions and 53 deletions

View File

@@ -311,14 +311,11 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM
if(snapshot.connectionState == ConnectionState.waiting) return const Column(mainAxisSize: MainAxisSize.min, children: [LoadingSpinner()]); if(snapshot.connectionState == ConnectionState.waiting) return const Column(mainAxisSize: MainAxisSize.min, children: [LoadingSpinner()]);
var pollData = snapshot.data!.data; var pollData = snapshot.data!.data;
return ListView( return SingleChildScrollView(
shrinkWrap: true, child: PollOptionsList(
children: [
PollOptionsList(
pollData: pollData, pollData: pollData,
chatToken: widget.chatData.token chatToken: widget.chatData.token,
) ),
]
); );
} }
), ),

View File

@@ -29,7 +29,7 @@ class _PollOptionsListState extends State<PollOptionsList> {
double portion = numVoters == 0 ? 0 : (votes / numVoters); double portion = numVoters == 0 ? 0 : (votes / numVoters);
return ListTile( return ListTile(
enabled: false, // enabled: false,
isThreeLine: portionsVisible, isThreeLine: portionsVisible,
dense: true, dense: true,
title: Text( title: Text(