Commit 177bfbc5 authored by Administrator's avatar Administrator

ftp decay now 90 days

parent b04a6abe
......@@ -16,12 +16,14 @@ class AthleteTimeSeriesChart extends StatefulWidget {
@required this.activities,
@required this.activityAttr,
@required this.chartTitleText,
this.fullDecay,
});
final Athlete athlete;
final List<Activity> activities;
final ActivityAttr activityAttr;
final String chartTitleText;
final int fullDecay;
@override
_AthleteTimeSeriesChartState createState() => _AthleteTimeSeriesChartState();
......@@ -150,7 +152,8 @@ class _AthleteTimeSeriesChartState extends State<AthleteTimeSeriesChart> {
: () {
pagingOffset =
pagingOffset - (amountDisplayed / 2).round();
if (pagingOffset < 0) pagingOffset = 0;
if (pagingOffset < 0)
pagingOffset = 0;
setScope();
},
),
......@@ -227,7 +230,7 @@ class _AthleteTimeSeriesChartState extends State<AthleteTimeSeriesChart> {
numberOfActivities = widget.activities.length;
ActivityList<Activity>(widget.activities).enrichGlidingAverage(
activityAttr: widget.activityAttr,
fullDecay: 30,
fullDecay: widget.fullDecay ?? 30,
);
setScope();
}
......
......@@ -47,7 +47,15 @@ class _AthleteFtpWidgetState extends State<AthleteFtpWidget> {
chartTitleText: 'FTP (W)',
activityAttr: ActivityAttr.ftp,
athlete: widget.athlete,
fullDecay: 90,
),
const SizedBox(height:20),
const Center(
child:
Text('Tag activities with power data in any tag within '
'the taggroup "Effort" to show up here.'),
),
const SizedBox(height:20),
AthleteFilterWidget(
athlete: widget.athlete,
tagGroups: tagGroups,
......
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