2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 18:55:34 +00:00

Code Cleanup (#312)

* Open email and telephone links for company

* Cleanup imports
This commit is contained in:
Oliver
2023-04-11 22:38:57 +10:00
committed by GitHub
parent 946abb60a0
commit 164295c3e2
10 changed files with 74 additions and 56 deletions

View File

@ -1,8 +1,10 @@
import "package:flutter/material.dart";
import "package:flutter_markdown/flutter_markdown.dart";
import "package:inventree/l10.dart";
import "package:url_launcher/url_launcher.dart";
import "package:inventree/l10.dart";
import "package:inventree/helpers.dart";
class ReleaseNotesWidget extends StatelessWidget {
@ -10,16 +12,6 @@ class ReleaseNotesWidget extends StatelessWidget {
final String releaseNotes;
// Callback function when a link is clicked in the markdown
Future<void> openLink(String url) async {
final link = Uri.parse(url);
if (await canLaunchUrl(link)) {
await launchUrl(link);
}
}
@override
Widget build (BuildContext context) {
return Scaffold(