1
0
mirror of https://github.com/h7x4/Jisho-Study-Tool.git synced 2024-12-22 13:57:29 +01:00
Jisho-Study-Tool/lib/services/open_webpage.dart
h7x4 76f8cc6c86
Add licenses and update docs (#39)
* Add info sections to application

* Update README

* Make screenshots bigger

* A little less big

* Fix heading sizes
2022-01-25 00:54:21 +01:00

11 lines
244 B
Dart

import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
Future<void> open_webpage(String url) async {
if (await canLaunch(url)) {
launch(url);
} else {
debugPrint('Could not open url: $url');
}
}