mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-06 11:09:28 +00:00
14 lines
344 B
Dart
14 lines
344 B
Dart
|
|
import 'package:flutter/material.dart';
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
|
Future<void> handleLaunchUrl(Uri url) async {
|
|
if (!await launchUrl(
|
|
url,
|
|
mode: LaunchMode.platformDefault,
|
|
webOnlyWindowName: '_blank',
|
|
)) {
|
|
// throw Exception('Could not launch $url');
|
|
debugPrint('Could not launch $url');
|
|
}
|
|
}
|