fix
This commit is contained in:
parent
0e2ccb9e54
commit
61134f7b63
1 changed files with 14 additions and 4 deletions
|
@ -59,16 +59,26 @@ class StatsPage extends StatelessWidget {
|
||||||
)),
|
)),
|
||||||
|
|
||||||
if (min.isNotEmpty)
|
if (min.isNotEmpty)
|
||||||
const ListTile(title: Text("Items under Minimum")),
|
const ListTile(
|
||||||
|
title: Text(
|
||||||
|
"Items under Minimum",
|
||||||
|
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
|
||||||
|
)),
|
||||||
...min.map((item) {
|
...min.map((item) {
|
||||||
|
var (itemID, variant) = itemVariant(item.itemVariant);
|
||||||
|
var name = API().getItem(itemID).variants[variant]!.name;
|
||||||
|
|
||||||
return ListTile(
|
return ListTile(
|
||||||
title: Text(
|
title: Text("$name under minimum. Needs ${item.need} more."),
|
||||||
"Item ${item.itemVariant} under minimum. Needs ${item.need} more."),
|
|
||||||
);
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
|
|
||||||
if (expired.isNotEmpty)
|
if (expired.isNotEmpty)
|
||||||
const ListTile(title: Text("Expired Items")),
|
const ListTile(
|
||||||
|
title: Text(
|
||||||
|
"Expired Items",
|
||||||
|
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
|
||||||
|
)),
|
||||||
|
|
||||||
// Mapping expired list to widgets
|
// Mapping expired list to widgets
|
||||||
...expired.map((item) {
|
...expired.map((item) {
|
||||||
|
|
Loading…
Reference in a new issue