mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
More code cleanup
This commit is contained in:
parent
68859b3d2e
commit
d47a8db289
7 changed files with 15 additions and 50 deletions
|
|
@ -26,7 +26,7 @@ class InvenTreePageResponse {
|
|||
List<InvenTreeModel> results = [];
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* The InvenTreeModel class provides a base-level object
|
||||
* for interacting with InvenTree data.
|
||||
*/
|
||||
|
|
@ -105,12 +105,9 @@ class InvenTreeModel {
|
|||
void openLink() async {
|
||||
|
||||
if (link.isNotEmpty) {
|
||||
print("Opening link: ${link}");
|
||||
|
||||
if (await canLaunch(link)) {
|
||||
await launch(link);
|
||||
} else {
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -320,7 +320,7 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||
return img;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Return the Part thumbnail for this stock item.
|
||||
*/
|
||||
String get partThumbnail {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue