Include time in set_tile

This commit is contained in:
Brandon Presley 2023-11-30 10:27:01 +13:00
parent dac65c8390
commit 852d28afcf

View File

@ -20,8 +20,8 @@ class SetTile extends StatelessWidget {
Widget build(BuildContext context) {
return ListTile(
title: Text(gymSet.name),
subtitle:
Text(DateFormat("yyyy-MM-dd").format(DateTime.parse(gymSet.created))),
subtitle: Text(DateFormat("yyyy-MM-dd HH:mm")
.format(DateTime.parse(gymSet.created))),
trailing: Text("${gymSet.reps} x ${gymSet.weight}kg"),
onTap: () async {
await Navigator.push(