mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-19 04:55:09 +00:00
chore: do not humanize links
This commit is contained in:
parent
d6bd765d66
commit
ec9aff28c8
5 changed files with 5 additions and 0 deletions
|
@ -241,6 +241,7 @@ class MessageContent extends StatelessWidget {
|
||||||
decoration:
|
decoration:
|
||||||
event.redacted ? TextDecoration.lineThrough : null,
|
event.redacted ? TextDecoration.lineThrough : null,
|
||||||
),
|
),
|
||||||
|
options: const LinkifyOptions(humanize: false),
|
||||||
linkStyle: TextStyle(
|
linkStyle: TextStyle(
|
||||||
color: textColor.withAlpha(150),
|
color: textColor.withAlpha(150),
|
||||||
fontSize: bigEmotes ? fontSize * 3 : fontSize,
|
fontSize: bigEmotes ? fontSize * 3 : fontSize,
|
||||||
|
|
|
@ -108,6 +108,7 @@ class PinnedEvents extends StatelessWidget {
|
||||||
withSenderNamePrefix: true,
|
withSenderNamePrefix: true,
|
||||||
hideReply: true,
|
hideReply: true,
|
||||||
),
|
),
|
||||||
|
options: const LinkifyOptions(humanize: false),
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color:
|
color:
|
||||||
|
|
|
@ -129,6 +129,7 @@ class ChatDetailsView extends StatelessWidget {
|
||||||
text: room.topic.isEmpty
|
text: room.topic.isEmpty
|
||||||
? L10n.of(context)!.addGroupDescription
|
? L10n.of(context)!.addGroupDescription
|
||||||
: room.topic,
|
: room.topic,
|
||||||
|
options: const LinkifyOptions(humanize: false),
|
||||||
linkStyle:
|
linkStyle:
|
||||||
const TextStyle(color: Colors.blueAccent),
|
const TextStyle(color: Colors.blueAccent),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|
|
@ -278,6 +278,7 @@ class StoryView extends StatelessWidget {
|
||||||
? L10n.of(context)!.loadingPleaseWait
|
? L10n.of(context)!.loadingPleaseWait
|
||||||
: event.content.tryGet<String>('body') ?? '',
|
: event.content.tryGet<String>('body') ?? '',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
options: const LinkifyOptions(humanize: false),
|
||||||
onOpen: (url) =>
|
onOpen: (url) =>
|
||||||
UrlLauncher(context, url.url).launchUrl(),
|
UrlLauncher(context, url.url).launchUrl(),
|
||||||
linkStyle: TextStyle(
|
linkStyle: TextStyle(
|
||||||
|
|
|
@ -160,6 +160,7 @@ class PublicRoomBottomSheet extends StatelessWidget {
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: Theme.of(context).textTheme.bodyMedium!.color,
|
color: Theme.of(context).textTheme.bodyMedium!.color,
|
||||||
),
|
),
|
||||||
|
options: const LinkifyOptions(humanize: false),
|
||||||
onOpen: (url) =>
|
onOpen: (url) =>
|
||||||
UrlLauncher(context, url.url).launchUrl(),
|
UrlLauncher(context, url.url).launchUrl(),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue