mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Update models to work with new keys
creation_date was renamed to created and update_date to last_updated
This commit is contained in:
@@ -22,7 +22,7 @@ Widget createNutritionalPlanScreen({locale = 'en'}) {
|
||||
id: 1,
|
||||
code: '123456787',
|
||||
name: 'Müsli',
|
||||
creationDate: DateTime(2021, 5, 1),
|
||||
created: DateTime(2021, 5, 1),
|
||||
energy: 500,
|
||||
carbohydrates: 10,
|
||||
carbohydratesSugar: 2,
|
||||
@@ -36,7 +36,7 @@ Widget createNutritionalPlanScreen({locale = 'en'}) {
|
||||
id: 1,
|
||||
code: '123456787',
|
||||
name: 'Milk',
|
||||
creationDate: DateTime(2021, 5, 1),
|
||||
created: DateTime(2021, 5, 1),
|
||||
energy: 500,
|
||||
carbohydrates: 10,
|
||||
carbohydratesSugar: 2,
|
||||
@@ -50,7 +50,7 @@ Widget createNutritionalPlanScreen({locale = 'en'}) {
|
||||
id: 1,
|
||||
code: '123456787',
|
||||
name: 'Apple',
|
||||
creationDate: DateTime(2021, 5, 1),
|
||||
created: DateTime(2021, 5, 1),
|
||||
energy: 500,
|
||||
carbohydrates: 10,
|
||||
carbohydratesSugar: 2,
|
||||
|
||||
Reference in New Issue
Block a user