From 36339ba77b878f653e0fc9178b5cd01cc5c07b23 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 4 Sep 2022 12:24:56 +0200 Subject: [PATCH] fix: Comment design --- lib/widgets/status/status.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/widgets/status/status.dart b/lib/widgets/status/status.dart index d8de241..f5035bb 100644 --- a/lib/widgets/status/status.dart +++ b/lib/widgets/status/status.dart @@ -1,5 +1,6 @@ import 'dart:io'; +import 'package:fluffypix/utils/links_callback.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; @@ -411,12 +412,17 @@ class _StatusWidgetState extends State { '/status/${reply.id}', arguments: reply, ), - title: Html( + subtitle: Html( data: '${reply.account.displayName.isNotEmpty ? reply.account.displayName : reply.account.username}: ${reply.content}', + onLinkTap: (link) => linksCallback(link, context), defaultTextStyle: TextStyle( color: Theme.of(context).textTheme.bodyText1?.color, ), + linkStyle: TextStyle( + color: Theme.of(context).primaryColor, + decoration: TextDecoration.none, + ), ), ), if (widget.replies.isNotEmpty) const SizedBox(height: 8),