radom jazda

This commit is contained in:
Cyanose 2023-07-29 19:46:11 +02:00
parent 99fc05ce72
commit b996edd9e3
2 changed files with 28 additions and 2 deletions

View file

@ -1,5 +1,10 @@
import 'package:fooder_web/models/product.dart';
class Entry { class Entry {
final String name; final int id;
final double grams;
final Product product;
final int mealId;
final double calories; final double calories;
final double protein; final double protein;
final double fat; final double fat;
@ -7,7 +12,10 @@ class Entry {
const Entry({ const Entry({
required this.name, required this.id,
required this.grams,
required this.product,
required this.mealId,
required this.calories, required this.calories,
required this.protein, required this.protein,
required this.fat, required this.fat,

18
lib/models/product.dart Normal file
View file

@ -0,0 +1,18 @@
class Product {
final int id;
final String name;
final double calories;
final double protein;
final double carb;
final double fat;
const Entry({
required this.id,
required this.name;
required this.calories;
required this.protein;
required this.carb;
required this.fat;
});
}