Refactor weight chart to be used with the measurement entries

This commit is contained in:
Roland Geider
2021-08-25 17:19:47 +02:00
parent a2673fe764
commit 5b5feca8b8
3 changed files with 17 additions and 8 deletions

View File

@@ -258,7 +258,9 @@ class _DashboardWeightWidgetState extends State<DashboardWeightWidget> {
? Container(
padding: EdgeInsets.all(15),
height: 180,
child: WeightChartWidget(weightEntriesData.items),
child: WeightChartWidget(weightEntriesData.items
.map((e) => MeasurementChartEntry(e.weight, e.date))
.toList()),
)
: NothingFound(
AppLocalizations.of(context).noWeightEntries,