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