24 lines
522 B
Dart
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()),
|
|
);
|
|
}
|
|
}
|