Skip to content

Commit ee6cd67

Browse files
authored
More use of url_launcher plugin in Flutter Gallery (flutter#9836)
1 parent 76dbfe9 commit ee6cd67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/flutter_gallery/lib/gallery/updates.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import 'dart:async';
66

77
import 'package:flutter/foundation.dart';
88
import 'package:flutter/material.dart';
9-
import 'package:flutter/services.dart';
9+
10+
import 'package:url_launcher/url_launcher.dart';
1011

1112
typedef Future<String> UpdateUrlFetcher();
1213

@@ -42,7 +43,7 @@ class UpdaterState extends State<Updater> {
4243
if (updateUrl != null) {
4344
final bool wantsUpdate = await showDialog(context: context, child: _buildDialog());
4445
if (wantsUpdate != null && wantsUpdate)
45-
UrlLauncher.launch(updateUrl);
46+
launch(updateUrl);
4647
}
4748
}
4849

0 commit comments

Comments
 (0)