mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
fix vote card
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user