Skip to content

Commit

Permalink
fix: Comment design
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Sep 4, 2022
1 parent 6e74a72 commit 36339ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/widgets/status/status.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -411,12 +412,17 @@ class _StatusWidgetState extends State<StatusWidget> {
'/status/${reply.id}',
arguments: reply,
),
title: Html(
subtitle: Html(
data:
'<b>${reply.account.displayName.isNotEmpty ? reply.account.displayName : reply.account.username}</b>: ${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),
Expand Down

0 comments on commit 36339ba

Please sign in to comment.