Merge pull request #1 from Cyanose/main

radom jazda
This commit is contained in:
Doman 2023-07-29 20:02:30 +02:00 committed by GitHub
commit 5da576e7d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 2 deletions

View file

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