Commit 080cb4b5 authored by Administrator's avatar Administrator

average ecor on ecor activity screen

parent 224af5b0
import 'package:encrateia/models/athlete.dart';
import 'package:encrateia/models/record_list.dart';
import 'package:encrateia/models/weight.dart';
import 'package:encrateia/utils/enums.dart';
import 'package:flutter/material.dart';
import 'package:encrateia/models/activity.dart';
import 'package:encrateia/models/event.dart';
......@@ -59,6 +60,16 @@ class _ActivityEcorWidgetState extends State<ActivityEcorWidget> {
'aggregated into one point in the plot. Only records where '
'power > 0 W and speed > 1 m/s are shown.'),
const Divider(),
ListTile(
leading: MyIcon.power,
title: Text((widget.activity.weight != null)
? (widget.activity.getAttribute(ActivityAttr.ecor)
as double)
.toStringAsFixed(3) +
' W s/kg m'
: 'not available'),
subtitle: const Text('ecor (running economy'),
),
ListTile(
leading: MyIcon.weight,
title: Text(weightString),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment