We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f0f26f commit c4828b4Copy full SHA for c4828b4
lib/utils/launchers.dart
@@ -1,6 +1,3 @@
1
-// A utility file to handle URL launching.
2
-
3
-import 'package:flutter/foundation.dart';
4
import 'package:url_launcher/url_launcher.dart';
5
6
// The URL to be opened.
@@ -10,10 +7,6 @@ final Uri registrationUri = Uri.parse('https://quiet-pup-summary.ngrok-free.app/
10
7
// It checks if the URL can be launched before attempting to do so.
11
8
Future<void> launchUrlInBrowser() async {
12
9
if (!await launchUrl(registrationUri)) {
13
- // If the URL cannot be launched, throw an exception.
14
- if (kDebugMode) {
15
- print('Could not launch $registrationUri');
16
- }
17
throw Exception('Could not launch $registrationUri');
18
}
19
0 commit comments