fix(recipe): Fix

This commit is contained in:
2024-08-14 14:37:23 +03:00
parent f697f403f4
commit 167134beb6

View File

@@ -152,7 +152,7 @@ class RecipeCreateCubit extends Cubit<RecipeCreateState> {
try {
if (state is RecipeCreateStateLoaded) {
var currentState = state as RecipeCreateStateLoaded;
List<XFile?> newStepImages = currentState.stepImages;
List<XFile?> newStepImages = List<XFile?>.from(currentState.stepImages);
newStepImages.removeLast();
List<TextEditingController> newStepControllers =
List<TextEditingController>.from(currentState.stepControllers);