|
1 | 1 | import 'package:collection/collection.dart';
|
2 | 2 | import 'package:flutter/material.dart';
|
3 |
| -import 'package:styled_text/styled_text.dart'; |
4 | 3 |
|
5 | 4 | import '../api/route/messages.dart';
|
6 | 5 | import '../generated/l10n/zulip_localizations.dart';
|
@@ -129,25 +128,12 @@ class _ReadReceiptsHeader extends StatelessWidget {
|
129 | 128 | color: designVariables.title,
|
130 | 129 | ).merge(weightVariableTextStyle(context, wght: 600))),
|
131 | 130 | if (status == FetchStatus.success && receiptCount > 0)
|
132 |
| - StyledText( |
133 |
| - text: zulipLocalizations.actionSheetReadReceiptsReadCount(receiptCount), |
134 |
| - tags: { |
135 |
| - 'z-link': StyledTextActionTag((_, _) { |
136 |
| - PlatformActions.launchUrl(context, Uri.parse(ReadReceipts._helpCenterUrl)); |
137 |
| - }, |
138 |
| - style: TextStyle( |
139 |
| - decoration: TextDecoration.underline, |
140 |
| - decorationStyle: TextDecorationStyle.solid, |
141 |
| - // We use the default value for this, as there's no obvious |
142 |
| - // way to map the thickness value from Figma design as it is |
143 |
| - // a percentage of the font size. |
144 |
| - decorationThickness: 1, |
145 |
| - // decorationOffset: // TODO(upstream #30541) |
146 |
| - color: designVariables.link, |
147 |
| - decorationColor: designVariables.link), |
148 |
| - )}, |
| 131 | + TextWithLink( |
| 132 | + onTap: () => PlatformActions.launchUrl(context, |
| 133 | + Uri.parse(ReadReceipts._helpCenterUrl)), |
149 | 134 | style: TextStyle(fontSize: 17, height: 22 / 17,
|
150 |
| - color: designVariables.textMessage)), |
| 135 | + color: designVariables.textMessage), |
| 136 | + markup: zulipLocalizations.actionSheetReadReceiptsReadCount(receiptCount)), |
151 | 137 | ]));
|
152 | 138 | }
|
153 | 139 | }
|
|
0 commit comments