calorimeter/lib/food_entry_widget.dart

24 lines
522 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
2024-06-01 10:41:58 +00:00
import 'package:kalodings/enter_food_widget.dart';
class FoodEntryWidget extends StatelessWidget {
2024-06-01 10:41:58 +00:00
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) {
2024-06-01 10:41:58 +00:00
return RowWidgetWithSpacers(
Text(name),
Text(mass.toString()),
Text(kcalPerMass.toString()),
);
}
}