mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 18:25:26 +00:00
Driving the refactor tractor
- InvenTreeAPI() object now has a method to return a cache-backed image from the server
This commit is contained in:
@ -180,12 +180,7 @@ class PartList extends StatelessWidget {
|
||||
title: Text("${part.name}"),
|
||||
subtitle: Text("${part.description}"),
|
||||
leading: Image(
|
||||
image: AdvancedNetworkImage(
|
||||
part.thumbnail,
|
||||
header: InvenTreeAPI().defaultHeaders(),
|
||||
useDiskCache: true,
|
||||
cacheRule: CacheRule(maxAge: const Duration(days: 1)),
|
||||
),
|
||||
image: InvenTreeAPI().getImage(part.thumbnail),
|
||||
width: 48,
|
||||
),
|
||||
onTap: () {
|
||||
|
Reference in New Issue
Block a user