mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 18:18:38 +00:00
@@ -339,7 +339,12 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
ThemeData theme,
|
||||
ReplyControl replyControl,
|
||||
) {
|
||||
final ButtonStyle style = TextButton.styleFrom(
|
||||
final textStyle = TextStyle(
|
||||
fontSize: theme.textTheme.labelMedium!.fontSize,
|
||||
color: theme.colorScheme.outline,
|
||||
fontWeight: FontWeight.normal,
|
||||
);
|
||||
final buttonStyle = TextButton.styleFrom(
|
||||
padding: EdgeInsets.zero,
|
||||
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||
visualDensity: VisualDensity.compact,
|
||||
@@ -350,7 +355,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
SizedBox(
|
||||
height: 32,
|
||||
child: TextButton(
|
||||
style: style,
|
||||
style: buttonStyle,
|
||||
onPressed: () {
|
||||
feedBack();
|
||||
onReply?.call(replyItem);
|
||||
@@ -363,60 +368,28 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
color: theme.colorScheme.outline.withValues(alpha: 0.8),
|
||||
),
|
||||
const SizedBox(width: 3),
|
||||
Text(
|
||||
'回复',
|
||||
style: TextStyle(
|
||||
fontSize: theme.textTheme.labelMedium!.fontSize,
|
||||
color: theme.colorScheme.outline,
|
||||
),
|
||||
),
|
||||
Text('回复', style: textStyle),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 2),
|
||||
if (replyItem.replyControl.upLike) ...[
|
||||
SizedBox(
|
||||
height: 32,
|
||||
child: TextButton(
|
||||
onPressed: null,
|
||||
style: style,
|
||||
child: Text(
|
||||
'UP主觉得很赞',
|
||||
style: TextStyle(
|
||||
color: theme.colorScheme.secondary,
|
||||
fontSize: theme.textTheme.labelMedium!.fontSize,
|
||||
fontWeight: FontWeight.normal,
|
||||
),
|
||||
),
|
||||
),
|
||||
if (replyItem.replyControl.cardLabels.isNotEmpty) ...[
|
||||
Text(
|
||||
replyItem.replyControl.cardLabels
|
||||
.map((e) => e.textContent)
|
||||
.join(' '),
|
||||
style: textStyle.copyWith(color: theme.colorScheme.secondary),
|
||||
),
|
||||
const SizedBox(width: 2),
|
||||
],
|
||||
if (replyItem.replyControl.cardLabels
|
||||
.map((item) => item.textContent)
|
||||
.contains('热评'))
|
||||
Text(
|
||||
'热评',
|
||||
style: TextStyle(
|
||||
color: theme.colorScheme.secondary,
|
||||
fontSize: theme.textTheme.labelMedium!.fontSize,
|
||||
),
|
||||
),
|
||||
if (replyLevel == 2 && needDivider && replyItem.id != replyItem.dialog)
|
||||
SizedBox(
|
||||
height: 32,
|
||||
child: TextButton(
|
||||
onPressed: showDialogue,
|
||||
style: style,
|
||||
child: Text(
|
||||
'查看对话',
|
||||
style: TextStyle(
|
||||
color: theme.colorScheme.outline,
|
||||
fontSize: theme.textTheme.labelMedium!.fontSize,
|
||||
fontWeight: FontWeight.normal,
|
||||
),
|
||||
),
|
||||
style: buttonStyle,
|
||||
child: Text('查看对话', style: textStyle),
|
||||
),
|
||||
)
|
||||
else if (replyLevel == 3 &&
|
||||
@@ -426,15 +399,8 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
height: 32,
|
||||
child: TextButton(
|
||||
onPressed: jumpToDialogue,
|
||||
style: style,
|
||||
child: Text(
|
||||
'跳转回复',
|
||||
style: TextStyle(
|
||||
color: theme.colorScheme.outline,
|
||||
fontSize: theme.textTheme.labelMedium!.fontSize,
|
||||
fontWeight: FontWeight.normal,
|
||||
),
|
||||
),
|
||||
style: buttonStyle,
|
||||
child: Text('跳转回复', style: textStyle),
|
||||
),
|
||||
),
|
||||
const Spacer(),
|
||||
|
||||
Reference in New Issue
Block a user