changed link to directly open the chat

This commit is contained in:
2026-02-01 15:20:01 +01:00
parent 174e6ac0b7
commit 92a9a7358e
4 changed files with 19 additions and 11 deletions

10
lib/utils/UrlOpener.dart Normal file
View File

@@ -0,0 +1,10 @@
import 'package:flutter_linkify/flutter_linkify.dart';
import 'package:url_launcher/url_launcher_string.dart';
class UrlOpener {
static Future<void> onOpen(LinkableElement link) async {
if(await canLaunchUrlString(link.url)) {
await launchUrlString(link.url);
}
}
}