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

27 lines
785 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 {
final int eaten, calorienBurned, calorienLeft, calorienLeftPercent;
2023-05-29 12:08:46 +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"),
const CircularLoadingComponent(123),
2023-05-30 16:17:51 +02:00
Text("$calorienBurned verbrannt"),
2023-05-29 12:08:46 +02:00
],
);
}
}