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)
|
||||
const ListTile(title: Text("Items under Minimum")),
|
||||
const ListTile(
|
||||
title: Text(
|
||||
"Items under Minimum",
|
||||
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
|
||||
)),
|
||||
...min.map((item) {
|
||||
var (itemID, variant) = itemVariant(item.itemVariant);
|
||||
var name = API().getItem(itemID).variants[variant]!.name;
|
||||
|
||||
return ListTile(
|
||||
title: Text(
|
||||
"Item ${item.itemVariant} under minimum. Needs ${item.need} more."),
|
||||
title: Text("$name under minimum. Needs ${item.need} more."),
|
||||
);
|
||||
}).toList(),
|
||||
|
||||
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
|
||||
...expired.map((item) {
|
||||
|
|
Loading…
Reference in a new issue