mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: reply2reply showing
This commit is contained in:
@@ -31,26 +31,29 @@ class HotKeyword extends StatelessWidget {
|
||||
padding: EdgeInsets.only(
|
||||
left: 2,
|
||||
right: hotSearchList!.indexOf(i) % 2 == 1 ? 10 : 0),
|
||||
child: Row(
|
||||
children: [
|
||||
Flexible(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(6, 5, 4, 5),
|
||||
child: Text(
|
||||
i.keyword!,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
style: const TextStyle(fontSize: 14),
|
||||
child: Tooltip(
|
||||
message: i.keyword!,
|
||||
child: Row(
|
||||
children: [
|
||||
Flexible(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(6, 5, 4, 5),
|
||||
child: Text(
|
||||
i.keyword!,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
style: const TextStyle(fontSize: 14),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
if (i.icon != null && i.icon != '')
|
||||
SizedBox(
|
||||
height: 15,
|
||||
child: CachedNetworkImage(
|
||||
imageUrl: i.icon!, height: 15.0),
|
||||
),
|
||||
],
|
||||
if (i.icon != null && i.icon != '')
|
||||
SizedBox(
|
||||
height: 15,
|
||||
child: CachedNetworkImage(
|
||||
imageUrl: i.icon!, height: 15.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -64,6 +64,7 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
|
||||
onChanged: (dynamic val) async {
|
||||
ctr.type.value = 1;
|
||||
ctr.setting.put(SettingBoxKey.dynamicColor, false);
|
||||
Get.forceAppUpdate();
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
@@ -120,7 +120,7 @@ class ReplyItem extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
// borderRadius: BorderRadius.circular(8),
|
||||
shape: BoxShape.circle,
|
||||
color: Theme.of(context).colorScheme.background,
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.offline_bolt,
|
||||
@@ -139,7 +139,7 @@ class ReplyItem extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
// borderRadius: BorderRadius.circular(8),
|
||||
shape: BoxShape.circle,
|
||||
color: Theme.of(context).colorScheme.background,
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.offline_bolt,
|
||||
@@ -386,7 +386,7 @@ class ReplyItemRow extends StatelessWidget {
|
||||
return Container(
|
||||
margin: const EdgeInsets.only(left: 42, right: 4, top: 0),
|
||||
child: Material(
|
||||
color: Theme.of(context).colorScheme.inverseSurface.withOpacity(0.02),
|
||||
color: Theme.of(context).colorScheme.onInverseSurface,
|
||||
borderRadius: BorderRadius.circular(6),
|
||||
clipBehavior: Clip.hardEdge,
|
||||
animationDuration: Duration.zero,
|
||||
@@ -437,7 +437,7 @@ class ReplyItemRow extends StatelessWidget {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: '${replies![i].member!.uname} ',
|
||||
text: '${replies![i].member!.uname}',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
@@ -457,7 +457,8 @@ class ReplyItemRow extends StatelessWidget {
|
||||
});
|
||||
},
|
||||
),
|
||||
if (replies![i].isUp!)
|
||||
if (replies![i].isUp!) ...[
|
||||
const TextSpan(text: ' '),
|
||||
const WidgetSpan(
|
||||
alignment: PlaceholderAlignment.top,
|
||||
child: PBadge(
|
||||
@@ -466,7 +467,13 @@ class ReplyItemRow extends StatelessWidget {
|
||||
stack: 'normal',
|
||||
fs: 9,
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
TextSpan(
|
||||
text: replies![i].content?.members?.isEmpty ==
|
||||
true
|
||||
? ': '
|
||||
: ' '),
|
||||
buildContent(
|
||||
context, replies![i], replyReply, replyItem),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user