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,6 +31,8 @@ class HotKeyword extends StatelessWidget {
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: 2, left: 2,
right: hotSearchList!.indexOf(i) % 2 == 1 ? 10 : 0), right: hotSearchList!.indexOf(i) % 2 == 1 ? 10 : 0),
child: Tooltip(
message: i.keyword!,
child: Row( child: Row(
children: [ children: [
Flexible( Flexible(
@@ -56,6 +58,7 @@ class HotKeyword extends StatelessWidget {
), ),
), ),
), ),
),
], ],
); );
} }

View File

@@ -64,6 +64,7 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
onChanged: (dynamic val) async { onChanged: (dynamic val) async {
ctr.type.value = 1; ctr.type.value = 1;
ctr.setting.put(SettingBoxKey.dynamicColor, false); ctr.setting.put(SettingBoxKey.dynamicColor, false);
Get.forceAppUpdate();
}, },
), ),
), ),

View File

@@ -120,7 +120,7 @@ class ReplyItem extends StatelessWidget {
decoration: BoxDecoration( decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(8), // borderRadius: BorderRadius.circular(8),
shape: BoxShape.circle, shape: BoxShape.circle,
color: Theme.of(context).colorScheme.background, color: Theme.of(context).colorScheme.surface,
), ),
child: const Icon( child: const Icon(
Icons.offline_bolt, Icons.offline_bolt,
@@ -139,7 +139,7 @@ class ReplyItem extends StatelessWidget {
decoration: BoxDecoration( decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(8), // borderRadius: BorderRadius.circular(8),
shape: BoxShape.circle, shape: BoxShape.circle,
color: Theme.of(context).colorScheme.background, color: Theme.of(context).colorScheme.surface,
), ),
child: const Icon( child: const Icon(
Icons.offline_bolt, Icons.offline_bolt,
@@ -386,7 +386,7 @@ class ReplyItemRow extends StatelessWidget {
return Container( return Container(
margin: const EdgeInsets.only(left: 42, right: 4, top: 0), margin: const EdgeInsets.only(left: 42, right: 4, top: 0),
child: Material( child: Material(
color: Theme.of(context).colorScheme.inverseSurface.withOpacity(0.02), color: Theme.of(context).colorScheme.onInverseSurface,
borderRadius: BorderRadius.circular(6), borderRadius: BorderRadius.circular(6),
clipBehavior: Clip.hardEdge, clipBehavior: Clip.hardEdge,
animationDuration: Duration.zero, animationDuration: Duration.zero,
@@ -457,7 +457,8 @@ class ReplyItemRow extends StatelessWidget {
}); });
}, },
), ),
if (replies![i].isUp!) if (replies![i].isUp!) ...[
const TextSpan(text: ' '),
const WidgetSpan( const WidgetSpan(
alignment: PlaceholderAlignment.top, alignment: PlaceholderAlignment.top,
child: PBadge( child: PBadge(
@@ -466,7 +467,13 @@ class ReplyItemRow extends StatelessWidget {
stack: 'normal', stack: 'normal',
fs: 9, fs: 9,
), ),
), )
],
TextSpan(
text: replies![i].content?.members?.isEmpty ==
true
? ': '
: ' '),
buildContent( buildContent(
context, replies![i], replyReply, replyItem), context, replies![i], replyReply, replyItem),
], ],