mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Refactor weight chart to be used with the measurement entries
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user