filtered system messages for poll votes
This commit is contained in:
@@ -306,20 +306,20 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM
|
||||
showDialog(context: context, builder: (context) => AlertDialog(
|
||||
title: Text(message.originalData!['object']!.name, textScaler: TextScaler.linear(0.9)),
|
||||
content: FutureBuilder(
|
||||
future: pollState,
|
||||
builder: (context, snapshot) {
|
||||
if(snapshot.connectionState == ConnectionState.waiting) return const Column(mainAxisSize: MainAxisSize.min, children: [LoadingSpinner()]);
|
||||
future: pollState,
|
||||
builder: (context, snapshot) {
|
||||
if(snapshot.connectionState == ConnectionState.waiting) return const Column(mainAxisSize: MainAxisSize.min, children: [LoadingSpinner()]);
|
||||
|
||||
var pollData = snapshot.data!.data;
|
||||
return ListView(
|
||||
shrinkWrap: true,
|
||||
children: [
|
||||
PollOptionsList(
|
||||
pollData: pollData
|
||||
)
|
||||
]
|
||||
);
|
||||
}
|
||||
var pollData = snapshot.data!.data;
|
||||
return ListView(
|
||||
shrinkWrap: true,
|
||||
children: [
|
||||
PollOptionsList(
|
||||
pollData: pollData
|
||||
)
|
||||
]
|
||||
);
|
||||
}
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
|
||||
Reference in New Issue
Block a user