opt: reply2reply showing

This commit is contained in:
bggRGjQaUbCoE
2024-08-26 21:35:33 +08:00
parent 50c911a6a6
commit 51083f2bd1
3 changed files with 35 additions and 24 deletions

View File

@@ -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),
),
],
),
),
),
),

View File

@@ -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();
},
),
),

View File

@@ -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),
],