updated poll list design
This commit is contained in:
@@ -304,7 +304,7 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM
|
|||||||
var pollId = int.parse(message.originalData!['object']!.id);
|
var pollId = int.parse(message.originalData!['object']!.id);
|
||||||
var pollState = GetPollState(token: widget.bubbleData.token, pollId: pollId).run();
|
var pollState = GetPollState(token: widget.bubbleData.token, pollId: pollId).run();
|
||||||
showDialog(context: context, builder: (context) => AlertDialog(
|
showDialog(context: context, builder: (context) => AlertDialog(
|
||||||
title: Text(message.originalData!['object']!.name, textScaler: TextScaler.linear(0.9)),
|
title: Text(message.originalData!['object']!.name, textScaler: TextScaler.linear(0.9), overflow: TextOverflow.ellipsis),
|
||||||
content: FutureBuilder(
|
content: FutureBuilder(
|
||||||
future: pollState,
|
future: pollState,
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class _PollOptionsListState extends State<PollOptionsList> {
|
|||||||
option,
|
option,
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
style: Theme.of(context).textTheme.bodyLarge,
|
||||||
),
|
),
|
||||||
trailing: Icon(
|
leading: Icon(
|
||||||
votedSelf ? Icons.check_circle_outlined : Icons.circle_outlined,
|
votedSelf ? Icons.check_circle_outlined : Icons.circle_outlined,
|
||||||
color: votedSelf
|
color: votedSelf
|
||||||
? Theme.of(context).colorScheme.primary.withValues(alpha: 0.6)
|
? Theme.of(context).colorScheme.primary.withValues(alpha: 0.6)
|
||||||
|
|||||||
Reference in New Issue
Block a user