Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-19 20:40:09 +08:00
parent 38b1af2696
commit e4654d63c3
6 changed files with 22 additions and 10 deletions

View File

@@ -309,8 +309,12 @@ Widget addWidget(
onTap: () {
showVoteDialog(
context,
vote.voteId,
item.idStr,
vote.voteId!,
item.idStr is int
? item.idStr
: item.idStr is String
? int.parse(item.idStr)
: null,
);
},
child: Padding(
@@ -358,8 +362,12 @@ Widget addWidget(
onPressed: () {
showVoteDialog(
context,
vote.voteId,
item.idStr,
vote.voteId!,
item.idStr is int
? item.idStr
: item.idStr is String
? int.parse(item.idStr)
: null,
);
},
style: FilledButton.styleFrom(