mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-07 17:50:13 +08:00
@@ -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,
|
||||
|
||||
@@ -228,10 +228,22 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
||||
itemCount: count,
|
||||
);
|
||||
}
|
||||
return HttpError(
|
||||
|
||||
final child = HttpError(
|
||||
errMsg: '还没有评论',
|
||||
onReload: _videoReplyController.onReload,
|
||||
);
|
||||
if (_videoReplyController.voteCard case final voteCard?) {
|
||||
return SliverMainAxisGroup(
|
||||
slivers: [
|
||||
SliverToBoxAdapter(
|
||||
child: buildVoteCard(context, colorScheme, voteCard),
|
||||
),
|
||||
child,
|
||||
],
|
||||
);
|
||||
}
|
||||
return child;
|
||||
case Error(:final errMsg):
|
||||
return HttpError(
|
||||
errMsg: errMsg,
|
||||
|
||||
@@ -302,15 +302,15 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
children: [
|
||||
switch (voteOption.labelKind) {
|
||||
.RED => TextSpan(
|
||||
text: '红队 ',
|
||||
text: '红方 ',
|
||||
style: TextStyle(color: colorScheme.vipColor),
|
||||
),
|
||||
.BLUE => TextSpan(
|
||||
text: '蓝队 ',
|
||||
text: '蓝方 ',
|
||||
style: TextStyle(color: colorScheme.blue),
|
||||
),
|
||||
_ => TextSpan(
|
||||
text: '投票 ',
|
||||
text: '投票 ',
|
||||
style: TextStyle(color: colorScheme.outline),
|
||||
),
|
||||
},
|
||||
@@ -318,6 +318,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
style: TextStyle(
|
||||
height: 1.75,
|
||||
fontSize: 12,
|
||||
color: colorScheme.onSurfaceVariant,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user