mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Adds pre-generated file for mapping icon names to icon hex values (#235)
* Adds pre-generated file for mapping icon names to icon hex values * Remove unused import * Simple method for converting icon string into useable data * Add rendering for category list and location list * Add custom icons to detail views * Updated release notes
This commit is contained in:
parent
8639ccf79e
commit
f339ac249b
7 changed files with 1530 additions and 2 deletions
|
|
@ -114,6 +114,7 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
|
|||
style: TextStyle(fontWeight: FontWeight.bold)
|
||||
),
|
||||
subtitle: Text("${category?.description}"),
|
||||
leading: category!.customIcon ?? FaIcon(FontAwesomeIcons.sitemap),
|
||||
),
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -112,6 +112,7 @@ class _PaginatedPartCategoryListState extends PaginatedSearchState<PaginatedPart
|
|||
title: Text(category.name),
|
||||
subtitle: Text(category.pathstring),
|
||||
trailing: Text("${category.partcount}"),
|
||||
leading: category.customIcon,
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
|
|||
ListTile(
|
||||
title: Text("${location!.name}"),
|
||||
subtitle: Text("${location!.description}"),
|
||||
leading: FaIcon(FontAwesomeIcons.boxes),
|
||||
leading: location!.customIcon ?? FaIcon(FontAwesomeIcons.boxes),
|
||||
),
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ class _PaginatedStockLocationListState extends PaginatedSearchState<PaginatedSto
|
|||
title: Text(location.name),
|
||||
subtitle: Text(location.pathstring),
|
||||
trailing: Text("${location.itemcount}"),
|
||||
leading: location.customIcon,
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue