Fix warnings
This commit is contained in:
parent
45ae72ed2a
commit
e8a8bb3b4f
2 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
import "package:collection/collection.dart";
|
import "package:collection/collection.dart";
|
||||||
import "package:flutter/foundation.dart";
|
|
||||||
import "package:flutter_chat_core/flutter_chat_core.dart";
|
import "package:flutter_chat_core/flutter_chat_core.dart";
|
||||||
import "package:matrix/matrix.dart";
|
import "package:matrix/matrix.dart";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -254,8 +254,10 @@ class RoomChat extends HookConsumerWidget {
|
||||||
),
|
),
|
||||||
(m) {
|
(m) {
|
||||||
// If it's already an <a> tag, leave it unchanged
|
// If it's already an <a> tag, leave it unchanged
|
||||||
if (m.group(1) != null)
|
if (m.group(1) !=
|
||||||
|
null) {
|
||||||
return m.group(1)!;
|
return m.group(1)!;
|
||||||
|
}
|
||||||
|
|
||||||
// Otherwise, wrap the bare URL
|
// Otherwise, wrap the bare URL
|
||||||
final url = m.group(2)!;
|
final url = m.group(2)!;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue