2023-05-29 12:08:46 +02:00
|
|
|
import 'package:ernaehrung/android/components/circular/circular_component.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class StatisticsPercentComponent extends StatelessWidget {
|
2023-06-02 00:38:19 +02:00
|
|
|
final int eaten, calorienBurned, calorienLeft, calorienLeftPercent;
|
2023-05-29 12:08:46 +02:00
|
|
|
|
2023-06-02 00:38:19 +02:00
|
|
|
const StatisticsPercentComponent(
|
|
|
|
{super.key,
|
|
|
|
required this.calorienLeftPercent,
|
|
|
|
required this.eaten,
|
|
|
|
required this.calorienBurned,
|
|
|
|
required this.calorienLeft});
|
2023-05-29 12:08:46 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
2023-05-30 16:17:51 +02:00
|
|
|
Text("$eaten gegessen"),
|
2023-06-02 00:38:19 +02:00
|
|
|
const CircularLoadingComponent(123),
|
2023-05-30 16:17:51 +02:00
|
|
|
Text("$calorienBurned verbrannt"),
|
2023-05-29 12:08:46 +02:00
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|