🐛 Fix notification screen error

This commit is contained in:
2024-11-26 21:56:01 +08:00
parent 6a3cd0a60d
commit bedffbfad7
5 changed files with 100 additions and 82 deletions

View File

@ -197,11 +197,24 @@ class _NotificationScreenState extends State<NotificationScreen> {
'interactive.subscription'
].contains(nty.topic) &&
nty.metadata['related_post'] != null)
PostItem(
data: SnPost.fromJson(
nty.metadata['related_post']!,
StyledWidget(Container(
decoration: BoxDecoration(
borderRadius: const BorderRadius.all(
Radius.circular(8)),
border: Border.all(
color: Theme.of(context).dividerColor,
width: 1,
),
),
),
child: PostItem(
data: SnPost.fromJson(
nty.metadata['related_post']!,
),
showComments: false,
showReactions: false,
showMenu: false,
),
)).padding(top: 8),
const Gap(8),
Row(
children: [