opt: at me item

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-05 17:57:51 +08:00
parent 08b0a93064
commit dc1451c3af

View File

@@ -70,17 +70,19 @@ class _AtMePageState extends State<AtMePage> {
title: Text( title: Text(
"${loadingState.response[index].user?.nickname} " "${loadingState.response[index].user?.nickname} "
"${loadingState.response[index].item?.business}中@了我", "${loadingState.response[index].item?.business}中@了我",
style: Theme.of(context).textTheme.titleMedium!.copyWith( style: Theme.of(context).textTheme.bodyMedium!.copyWith(
color: Theme.of(context).colorScheme.primary, color: Theme.of(context).colorScheme.primary,
), ),
), ),
subtitle: Column( subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
if ((loadingState.response[index].item?.sourceContent
as String?)
?.isNotEmpty ==
true) ...[
const SizedBox(height: 4), const SizedBox(height: 4),
Text( Text(loadingState.response[index].item?.sourceContent,
loadingState.response[index].item?.sourceContent ??
"",
maxLines: 3, maxLines: 3,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: Theme.of(context) style: Theme.of(context)
@@ -89,6 +91,7 @@ class _AtMePageState extends State<AtMePage> {
.copyWith( .copyWith(
color: color:
Theme.of(context).colorScheme.outline)), Theme.of(context).colorScheme.outline)),
],
const SizedBox(height: 4), const SizedBox(height: 4),
Text( Text(
Utils.dateFormat(loadingState.response[index].atTime), Utils.dateFormat(loadingState.response[index].atTime),