commit
5da576e7d1
2 changed files with 28 additions and 2 deletions
|
@ -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
18
lib/models/product.dart
Normal 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;
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in a new issue