calorimeter/lib/food_entry_widget.dart
2024-06-01 12:41:58 +02:00

24 lines
522 B
Dart

import 'package:flutter/material.dart';
import 'package:kalodings/enter_food_widget.dart';
class FoodEntryWidget extends StatelessWidget {
final String name;
final double mass;
final double kcalPerMass;
const FoodEntryWidget(
{super.key,
required this.name,
required this.mass,
required this.kcalPerMass});
@override
Widget build(BuildContext context) {
return RowWidgetWithSpacers(
Text(name),
Text(mass.toString()),
Text(kcalPerMass.toString()),
);
}
}