fix vote card

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-24 12:47:46 +08:00
parent b46cb69df4
commit fcf4e72d8e
2 changed files with 4 additions and 4 deletions

View File

@@ -619,17 +619,17 @@ class Vote {
Vote({ Vote({
this.joinNum, this.joinNum,
this.voteId, this.voteId,
this.desc, this.title,
}); });
int? joinNum; int? joinNum;
int? voteId; int? voteId;
String? desc; String? title;
Vote.fromJson(Map<String, dynamic> json) { Vote.fromJson(Map<String, dynamic> json) {
joinNum = Utils.safeToInt(json['join_num']); joinNum = Utils.safeToInt(json['join_num']);
voteId = Utils.safeToInt(json['vote_id']); voteId = Utils.safeToInt(json['vote_id']);
desc = json['desc']; title = json['title'];
} }
} }

View File

@@ -436,7 +436,7 @@ Widget addWidget(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
vote.desc!, vote.title!,
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),