Flutter-Ernaehrungsapp/lib/android/components/statistics_circular_indicat...

28 lines
842 B
Dart
Raw Normal View History

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-05-30 16:17:51 +02:00
late int eaten, calorienBurned, calorienLeft, calorienLeftPercent;
2023-05-29 12:08:46 +02:00
2023-05-30 16:17:51 +02:00
StatisticsPercentComponent(this.eaten, this.calorienBurned, this.calorienLeft, {super.key});
2023-05-29 12:08:46 +02:00
2023-05-30 16:17:51 +02:00
int get getEaten => eaten;
2023-05-29 12:08:46 +02:00
get getCalorienBurned => calorienBurned;
get getCalorienLeft => calorienLeft;
get getCalorienLeftPercent => calorienLeftPercent;
@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-01 11:46:53 +02:00
CircularLoadingComponent(),
2023-05-30 16:17:51 +02:00
Text("$calorienBurned verbrannt"),
2023-05-29 12:08:46 +02:00
],
);
}
}