Commit ee6cd679 authored by Sarah Zakarias's avatar Sarah Zakarias Committed by GitHub

More use of url_launcher plugin in Flutter Gallery (#9836)

parent 76dbfe9a
......@@ -6,7 +6,8 @@ import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:url_launcher/url_launcher.dart';
typedef Future<String> UpdateUrlFetcher();
......@@ -42,7 +43,7 @@ class UpdaterState extends State<Updater> {
if (updateUrl != null) {
final bool wantsUpdate = await showDialog(context: context, child: _buildDialog());
if (wantsUpdate != null && wantsUpdate)
UrlLauncher.launch(updateUrl);
launch(updateUrl);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment