Skip to content

Commit

Permalink
fix cast
Browse files Browse the repository at this point in the history
  • Loading branch information
jazminsofiaf committed Nov 6, 2021
1 parent 5e48be5 commit 9cd7635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pages/file_content_chart_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ class _MeasurementsChartState extends State<MeasurementsChart> {
double initialTimestamp = 0.0;
for (var i = 0; i < this._measurements.values.length; i++) {
if (i == 0) {
initialTimestamp = this._measurements.timestamps[i] as double;
initialTimestamp = this._measurements.timestamps[i] * 1.0;
}
var timestamp = (this._measurements.timestamps[i] - initialTimestamp);
var timestamp = (this._measurements.timestamps[i] - initialTimestamp) * 1.0;
var fingerValues = getFingerValues(this._measurements.values[i]);
var sensorValues = this.getSensorValues(fingerValues);
_measurementsX.add(SeriesEntry(timestamp, sensorValues.getX()));
Expand Down

0 comments on commit 9cd7635

Please sign in to comment.