mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
Improve display of part category / part
This commit is contained in:
parent
29c28aad91
commit
44a0c3e18d
0
lib/cache.dart
Normal file
0
lib/cache.dart
Normal file
@ -132,17 +132,12 @@ class SubcategoryList extends StatelessWidget {
|
|||||||
Widget _build(BuildContext context, int index) {
|
Widget _build(BuildContext context, int index) {
|
||||||
InvenTreePartCategory cat = _categories[index];
|
InvenTreePartCategory cat = _categories[index];
|
||||||
|
|
||||||
return Card(
|
return ListTile(
|
||||||
child: InkWell(
|
title: Text("${cat.name}"),
|
||||||
child: Column(
|
subtitle: Text("${cat.description}"),
|
||||||
children: <Widget>[
|
|
||||||
Text('${cat.name} - ${cat.description}'),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
onTap: () {
|
onTap: () {
|
||||||
_openCategory(context, cat.pk);
|
_openCategory(context, cat.pk);
|
||||||
}
|
}
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,18 +173,22 @@ class PartList extends StatelessWidget {
|
|||||||
part = _parts[index];
|
part = _parts[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
return Card(
|
return ListTile(
|
||||||
child: InkWell(
|
title: Text("${part.name}"),
|
||||||
child: Column(
|
subtitle: Text("${part.description}"),
|
||||||
children: <Widget> [
|
|
||||||
Text('${part.name} - ${part.description}'),
|
/*
|
||||||
]
|
leading: CachedNetworkImage(
|
||||||
|
imageUrl: part.imageurl,
|
||||||
|
placeholder: (context, url) => CircularProgressIndicator(),
|
||||||
|
errorWidget: (context, url, error) => Icon(Icons.error),
|
||||||
),
|
),
|
||||||
|
*/
|
||||||
onTap: () {
|
onTap: () {
|
||||||
_openPart(context, part.pk);
|
_openPart(context, part.pk);
|
||||||
},
|
},
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user