reran flutter build after adding image field to pizza recipe entity
This commit is contained in:
parent
a6f4071b92
commit
afd8e982f2
1 changed files with 7 additions and 3 deletions
|
@ -21,13 +21,15 @@ class PizzaRecipeAdapter extends TypeAdapter<PizzaRecipe> {
|
||||||
fields[1] as String,
|
fields[1] as String,
|
||||||
(fields[2] as List).cast<Ingredient>(),
|
(fields[2] as List).cast<Ingredient>(),
|
||||||
(fields[3] as List).cast<RecipeStep>(),
|
(fields[3] as List).cast<RecipeStep>(),
|
||||||
)..deleted = fields[4] as bool;
|
)
|
||||||
|
..deleted = fields[4] as bool
|
||||||
|
..imgUrl = fields[5] as String?;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void write(BinaryWriter writer, PizzaRecipe obj) {
|
void write(BinaryWriter writer, PizzaRecipe obj) {
|
||||||
writer
|
writer
|
||||||
..writeByte(5)
|
..writeByte(6)
|
||||||
..writeByte(0)
|
..writeByte(0)
|
||||||
..write(obj.name)
|
..write(obj.name)
|
||||||
..writeByte(1)
|
..writeByte(1)
|
||||||
|
@ -37,7 +39,9 @@ class PizzaRecipeAdapter extends TypeAdapter<PizzaRecipe> {
|
||||||
..writeByte(3)
|
..writeByte(3)
|
||||||
..write(obj.recipeSteps)
|
..write(obj.recipeSteps)
|
||||||
..writeByte(4)
|
..writeByte(4)
|
||||||
..write(obj.deleted);
|
..write(obj.deleted)
|
||||||
|
..writeByte(5)
|
||||||
|
..write(obj.imgUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Add table
Reference in a new issue