micro
continuous-integration/drone/push Build is passing Details

profile
Enzo 2 years ago
parent 8143c6a770
commit 791e15231a

@ -77,8 +77,6 @@ class ActivityOfUser {
}
String getTotalSteps() {
List<FlSpot> result = List.empty(growable: true);
print(_contentActivity.length);
for (int i = 0;
i < _contentActivity[_contentActivity.length - 3].length;
@ -93,8 +91,6 @@ class ActivityOfUser {
}
String getTotalCalorie() {
List<FlSpot> result = List.empty(growable: true);
print(_contentActivity.length);
for (int i = 0;
i < _contentActivity[_contentActivity.length - 3].length;
@ -110,8 +106,6 @@ class ActivityOfUser {
}
String getTotalAvgHeartRate() {
List<FlSpot> result = List.empty(growable: true);
print(_contentActivity.length);
for (int i = 0;
i < _contentActivity[_contentActivity.length - 3].length;
@ -127,8 +121,6 @@ class ActivityOfUser {
}
String getTotalTime() {
List<FlSpot> result = List.empty(growable: true);
print(_contentActivity.length);
for (int i = 0;
i < _contentActivity[_contentActivity.length - 3].length;
@ -144,8 +136,6 @@ class ActivityOfUser {
}
String getTotalDistance() {
List<FlSpot> result = List.empty(growable: true);
print(_contentActivity.length);
for (int i = 0;
i < _contentActivity[_contentActivity.length - 3].length;

@ -9,10 +9,10 @@ class MobileActivity extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
return const Scaffold(
backgroundColor: Colors.white,
body: Column(
children: const [
children: [
Divider(height: 80),
Steps(),
Graph(),

@ -18,32 +18,9 @@ class MobileHomeView extends StatefulWidget {
}
class _MobileHomeView extends State<MobileHomeView> {
List lastWorkoutArr = [
{
"name": "Full Body Workout",
"image": "assets/img/Workout1.png",
"kcal": "180",
"time": "20",
"progress": 0.3
},
{
"name": "Lower Body Workout",
"image": "assets/img/Workout2.png",
"kcal": "200",
"time": "30",
"progress": 0.4
},
{
"name": "Ab Workout",
"image": "assets/img/Workout3.png",
"kcal": "300",
"time": "40",
"progress": 0.7
},
];
List<int> showingTooltipOnSpots = [0];
List<FlSpot> allSpots = [FlSpot(0, 20)];
List<FlSpot> allSpots = [const FlSpot(0, 20)];
List waterArr = [
{"title": "6am - 8am", "subtitle": "600ml"},
@ -71,7 +48,7 @@ class _MobileHomeView extends State<MobileHomeView> {
TColor.secondaryColor2.withOpacity(0.1),
], begin: Alignment.topCenter, end: Alignment.bottomCenter),
),
dotData: FlDotData(show: false),
dotData: const FlDotData(show: false),
gradient: LinearGradient(
colors: TColor.secondaryG,
),

@ -9,10 +9,10 @@ class WebActivity extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
return const Scaffold(
backgroundColor: Colors.white,
body: Column(
children: const [
children: [
Divider(height: 80),
Steps(),
Graph(),

Loading…
Cancel
Save