diff --git a/lib/pages/stats.dart b/lib/pages/stats.dart index cb99e2a..80ecceb 100644 --- a/lib/pages/stats.dart +++ b/lib/pages/stats.dart @@ -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) {