diff --git a/lib/cache.dart b/lib/cache.dart new file mode 100644 index 00000000..e69de29b diff --git a/lib/widget/category_display.dart b/lib/widget/category_display.dart index cb70178a..9d75f569 100644 --- a/lib/widget/category_display.dart +++ b/lib/widget/category_display.dart @@ -132,17 +132,12 @@ class SubcategoryList extends StatelessWidget { Widget _build(BuildContext context, int index) { InvenTreePartCategory cat = _categories[index]; - return Card( - child: InkWell( - child: Column( - children: [ - Text('${cat.name} - ${cat.description}'), - ], - ), - onTap: () { - _openCategory(context, cat.pk); - } - ), + return ListTile( + title: Text("${cat.name}"), + subtitle: Text("${cat.description}"), + onTap: () { + _openCategory(context, cat.pk); + } ); } @@ -178,18 +173,22 @@ class PartList extends StatelessWidget { part = _parts[index]; } - return Card( - child: InkWell( - child: Column( - children: [ - Text('${part.name} - ${part.description}'), - ] - ), - onTap: () { - _openPart(context, part.pk); - }, - ) + return ListTile( + title: Text("${part.name}"), + subtitle: Text("${part.description}"), + + /* + leading: CachedNetworkImage( + imageUrl: part.imageurl, + placeholder: (context, url) => CircularProgressIndicator(), + errorWidget: (context, url, error) => Icon(Icons.error), + ), + */ + onTap: () { + _openPart(context, part.pk); + }, ); + } @override