opt vote item

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-04 22:21:21 +08:00
parent 0036b58aab
commit 8cf2195435
3 changed files with 30 additions and 5 deletions

View File

@@ -183,10 +183,22 @@ mixin CommonDynPageMixin<T extends StatefulWidget>
},
);
}
return HttpError(
final child = HttpError(
errMsg: '还没有评论',
onReload: controller.onReload,
);
if (controller.voteCard case final voteCard?) {
return SliverMainAxisGroup(
slivers: [
SliverToBoxAdapter(
child: buildVoteCard(context, theme.colorScheme, voteCard),
),
child,
],
);
}
return child;
case Error(:final errMsg):
return HttpError(
errMsg: errMsg,