fixed list view breaking layout
This commit is contained in:
@@ -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,
|
||||||
)
|
),
|
||||||
]
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user