fix: sys msg

This commit is contained in:
bggRGjQaUbCoE
2024-10-30 20:22:09 +08:00
parent 7efafa4190
commit 1d0ffd86d5
2 changed files with 2 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ class _SysMsgPageState extends State<SysMsgPage> {
InlineSpan _buildContent(String content) { InlineSpan _buildContent(String content) {
final List<InlineSpan> spanChildren = <InlineSpan>[]; final List<InlineSpan> spanChildren = <InlineSpan>[];
RegExp urlRegExp = RegExp( RegExp urlRegExp = RegExp(
'#\\{([^}]*)\\}\\{"([^}]*)"\\}|https?:\\/\\/[^\\s/\$.?#].[^\\s]*|www\\.[^\\s/\$.?#].[^\\s]*'); '#\\{([^}]*)\\}\\{"?([^}]*)"?\\}|https?:\\/\\/[^\\s/\$.?#].[^\\s]*|www\\.[^\\s/\$.?#].[^\\s]*');
content.splitMapJoin( content.splitMapJoin(
urlRegExp, urlRegExp,
onMatch: (Match match) { onMatch: (Match match) {

View File

@@ -176,7 +176,7 @@ class _WhisperPageState extends State<WhisperPage> {
? null ? null
: Theme.of(context) : Theme.of(context)
.colorScheme .colorScheme
.secondaryContainer, .onInverseSurface,
onLongPress: () { onLongPress: () {
showDialog( showDialog(
context: context, context: context,