mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Updated dependencies (#255)
* Bump android compile and target version, also flutter dependencies and resolve issues * Remove deprecated splashscreen and added support for new Android 12 version. * Updated workflow action versions and flutter sdk * Resolved linting issues * Resolved test binding issues
This commit is contained in:
parent
298ee24a9c
commit
6d4973deb8
51 changed files with 816 additions and 592 deletions
|
|
@ -223,8 +223,9 @@ class InvenTreeModel {
|
|||
|
||||
Future <void> goToInvenTreePage() async {
|
||||
|
||||
if (await canLaunch(webUrl)) {
|
||||
await launch(webUrl);
|
||||
var uri = Uri.tryParse(webUrl);
|
||||
if (uri != null && await canLaunchUrl(uri)) {
|
||||
await launchUrl(uri);
|
||||
} else {
|
||||
// TODO
|
||||
}
|
||||
|
|
@ -233,9 +234,9 @@ class InvenTreeModel {
|
|||
Future <void> openLink() async {
|
||||
|
||||
if (link.isNotEmpty) {
|
||||
|
||||
if (await canLaunch(link)) {
|
||||
await launch(link);
|
||||
var uri = Uri.tryParse(link);
|
||||
if (uri != null && await canLaunchUrl(uri)) {
|
||||
await launchUrl(uri);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -799,7 +800,7 @@ class InvenTreeAttachment extends InvenTreeModel {
|
|||
}
|
||||
}
|
||||
|
||||
return FontAwesomeIcons.fileAlt;
|
||||
return FontAwesomeIcons.fileLines;
|
||||
}
|
||||
|
||||
String get comment => (jsondata["comment"] ?? "") as String;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue