mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 19:46:25 +00:00
Improve display of part category / part
This commit is contained in:
parent
29c28aad91
commit
44a0c3e18d
2 changed files with 21 additions and 22 deletions
|
|
@ -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: <Widget>[
|
||||
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: <Widget> [
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue