We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76dbfe9 commit ee6cd67Copy full SHA for ee6cd67
examples/flutter_gallery/lib/gallery/updates.dart
@@ -6,7 +6,8 @@ import 'dart:async';
6
7
import 'package:flutter/foundation.dart';
8
import 'package:flutter/material.dart';
9
-import 'package:flutter/services.dart';
+
10
+import 'package:url_launcher/url_launcher.dart';
11
12
typedef Future<String> UpdateUrlFetcher();
13
@@ -42,7 +43,7 @@ class UpdaterState extends State<Updater> {
42
43
if (updateUrl != null) {
44
final bool wantsUpdate = await showDialog(context: context, child: _buildDialog());
45
if (wantsUpdate != null && wantsUpdate)
- UrlLauncher.launch(updateUrl);
46
+ launch(updateUrl);
47
}
48
49
0 commit comments