Commit 8f2d2474 authored by Administrator's avatar Administrator

lap watch data completely in view

parent 20c16b4c
......@@ -52,18 +52,18 @@ class ActivityOverviewWidget extends StatelessWidget {
" = ${activity.db.totalAscent - activity.db.totalDescent} m"),
subtitle: Text('total ascent - descent = total climb'),
),
ListTile(
leading: Icon(Icons.pets),
title: Text("${(activity.db.avgRunningCadence * 2).round()} / "
"${activity.db.maxRunningCadence * 2}"),
subtitle: Text('avg / max steps per minute'),
),
ListTile(
leading: Icon(Icons.spa),
title: Text(
"${activity.db.avgHeartRate} / ${activity.db.maxHeartRate}"),
subtitle: Text('avg / max heart rate'),
),
ListTile(
leading: Icon(Icons.pets),
title: Text("${(activity.db.avgRunningCadence * 2).round()} / "
"${activity.db.maxRunningCadence * 2}"),
subtitle: Text('avg / max steps per minute'),
),
ListTile(
leading: Icon(Icons.fitness_center),
title: Text(activity.db.totalTrainingEffect.toString()),
......
......@@ -21,8 +21,8 @@ class LapMetadataWidget extends StatelessWidget {
),
ListTile(
leading: Icon(Icons.access_time),
title: Text(DateFormat("dd MMM yyyy, h:mm:ss")
.format(lap.db.timeStamp)),
title: Text(
DateFormat("dd MMM yyyy, h:mm:ss").format(lap.db.timeStamp)),
subtitle: Text('timestamp'),
),
ListTile(
......@@ -37,13 +37,54 @@ class LapMetadataWidget extends StatelessWidget {
),
ListTile(
leading: Icon(Icons.event),
title: Text(lap.db.eventType + " / " + lap.db.eventGroup.toString()),
title:
Text(lap.db.eventType + " / " + lap.db.eventGroup.toString()),
subtitle: Text('event type / group'),
),
ListTile(
leading: Icon(Icons.unfold_more),
title: Text(lap.db.avgVerticalOscillation.toString()),
subtitle: Text('avg vertical oscillation'),
),
ListTile(
leading: Icon(Icons.timer),
title: Text(Duration(seconds: lap.db.totalElapsedTime).print()),
subtitle: Text('total elapsed time'),
),
ListTile(
leading: Icon(Icons.timer),
title: Text(Duration(seconds: lap.db.totalTimerTime).print()),
subtitle: Text('total timer time'),
),
ListTile(
leading: Icon(Icons.pets),
title: Text(
'${lap.db.avgStanceTime} ms / ${lap.db.avgStanceTimePercent} %'),
subtitle: Text('avg stance time / avg stance time percent'),
),
ListTile(
leading: Icon(Icons.event),
title: Text(lap.db.lapTrigger),
subtitle: Text('lap trigger'),
),
ListTile(
leading: Icon(Icons.ac_unit),
title:
Text('${lap.db.avgTemperature}° / ${lap.db.maxTemperature}°'),
subtitle: Text('avg / max temperature'),
),
ListTile(
leading: Icon(Icons.linear_scale),
title: Text(lap.db.avgFractionalCadence.toStringAsFixed(2) +
" / " +
lap.db.maxFractionalCadence.toStringAsFixed(2)),
subtitle: Text('avg / max fractional cadence'),
),
ListTile(
leading: Icon(Icons.repeat),
title: Text(lap.db.totalFractionalCycles.toString()),
subtitle: Text('total fractional cycles'),
),
ListTile(
leading: Icon(Icons.map),
title: Text(lap.db.startPositionLong.semicirclesAsDegrees() +
......@@ -58,20 +99,13 @@ class LapMetadataWidget extends StatelessWidget {
lap.db.endPositionLat.semicirclesAsDegrees()),
subtitle: Text('end position'),
),
ListTile(
leading: Icon(Icons.power),
title: Text(lap.db.intensity.toString()),
subtitle: Text('intensity'),
),
],
),
);
}
}
// avgVerticalOscillation real
// totalElapsedTime integer
// totalTimerTime integer
// avgStanceTimePercent real
// avgStanceTime real
// lapTrigger text
// avgTemperature integer
// maxTemperature integer
// avgFractionalCadence real
// maxFractionalCadence real
// totalFractionalCycles real
......@@ -17,26 +17,53 @@ class LapOverviewWidget extends StatelessWidget {
children: <Widget>[
ListTile(
leading: Icon(Icons.access_time),
title: Text(DateFormat("dd MMM yyyy, h:mm:ss")
.format(lap.db.startTime)),
title: Text(
DateFormat("dd MMM yyyy, h:mm:ss").format(lap.db.startTime)),
subtitle: Text('start time'),
),
ListTile(
leading: Icon(Icons.redo),
title:
Text('${(lap.db.totalDistance / 1000).toStringAsFixed(2)} km'),
subtitle: Text('distance'),
),
ListTile(
leading: Icon(Icons.shutter_speed),
title: Text((lap.db.avgSpeed * 3.6).toStringAsFixed(2) +
" km/h / " +
(lap.db.maxSpeed * 3.6).toStringAsFixed(2) +
" km/h"),
subtitle: Text('avg / max speed'),
),
ListTile(
leading: Icon(Icons.battery_charging_full),
title: Text('${lap.db.totalCalories} kcal'),
subtitle: Text('total calories'),
),
ListTile(
leading: Icon(Icons.landscape),
title: Text("${lap.db.totalAscent} m - ${lap.db.totalDescent} m"
" = ${lap.db.totalAscent - lap.db.totalDescent} m"),
subtitle: Text('total ascent - descent = total climb'),
),
ListTile(
leading: Icon(Icons.spa),
title: Text("${lap.db.avgHeartRate} / ${lap.db.maxHeartRate}"),
subtitle: Text('avg / max heart rate'),
),
ListTile(
leading: Icon(Icons.pets),
title: Text("${(lap.db.avgRunningCadence * 2).round()} / "
"${lap.db.maxRunningCadence * 2}"),
subtitle: Text('avg / max steps per minute'),
),
ListTile(
leading: Icon(Icons.pets),
title: Text(lap.db.totalStrides.toString()),
subtitle: Text('total strides'),
),
],
),
);
}
}
// avgHeartRate integer
// maxHeartRate integer
// avgRunningCadence real
// maxRunningCadence integer
// totalDistance integer
// totalStrides integer
// totalCalories integer
// avgSpeed real
// maxSpeed real
// totalAscent integer
// totalDescent integer
// intensity integer
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