2023-05-26 00:59:09 +02:00
|
|
|
import 'package:ernaehrung/android/components/circular/circular_component.dart';
|
2023-04-29 15:56:04 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class StatisticsPercentComponent extends StatelessWidget {
|
|
|
|
late String eaten, calorienBurned, calorienLeft, calorienLeftPercent;
|
|
|
|
|
|
|
|
StatisticsPercentComponent(int eaten, int calorienBurned, int calorienLeft, {super.key}){
|
|
|
|
this.eaten = '$eaten Gegessen';
|
|
|
|
this.calorienBurned = '$calorienBurned Verbrannt';
|
|
|
|
this.calorienLeft = '$calorienLeft Kcal Übrig';
|
|
|
|
}
|
|
|
|
|
|
|
|
String get getEaten => eaten;
|
|
|
|
get getCalorienBurned => calorienBurned;
|
|
|
|
get getCalorienLeft => calorienLeft;
|
|
|
|
get getCalorienLeftPercent => calorienLeftPercent;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(eaten),
|
2023-05-26 00:59:09 +02:00
|
|
|
const CircularLoadingComponent("100"),
|
2023-04-29 15:56:04 +02:00
|
|
|
Text(calorienBurned),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|