Commit 9c21f513 authored by Administrator's avatar Administrator

ListActivitiesScreen starting

parent 70506b9e
......@@ -38,7 +38,7 @@ class Activity extends Model {
startDateTime: startDateTime.toIso8601String(),
distance: distance
);
int id = await dbActivity.save();
await dbActivity.save();
}
static Activity of(BuildContext context) => ScopedModel.of<Activity>(context);
......
......@@ -51,7 +51,7 @@ class Athlete extends Model {
stravaId: stravaId,
stravaUsername: stravaUsername,
photoPath: photoPath);
int id = await dbAthlete.save();
await dbAthlete.save();
}
static Athlete of(BuildContext context) => ScopedModel.of<Athlete>(context);
......
......@@ -123,7 +123,6 @@ class _DashboardState extends State<Dashboard> {
],
);
}
;
} else {
return CircularProgressIndicator();
}
......
......@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:encrateia/model/model.dart';
class ListActivitiesScreen extends StatefulWidget {
DbAthlete athlete;
final DbAthlete athlete;
ListActivitiesScreen({this.athlete});
@override
......
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