forked from eatvio/eatvio_app
fix(diary) Layout padding fix
This commit is contained in:
@@ -396,6 +396,8 @@ class DiaryEditBloc extends Bloc<DiaryEditEvent, DiaryEditState> {
|
||||
var updatedState = currentState.copyWith(
|
||||
portions: currentState.meals?[id ?? 0]['portions'],
|
||||
);
|
||||
print(currentState.portions);
|
||||
print(updatedState.portions);
|
||||
emit(updatedState); // Передаем обновленное состояние в emit
|
||||
}
|
||||
}
|
||||
@@ -416,7 +418,6 @@ class DiaryEditBloc extends Bloc<DiaryEditEvent, DiaryEditState> {
|
||||
'portion': portion,
|
||||
'quantity': quantity,
|
||||
};
|
||||
print(credentials);
|
||||
var response = await http.post(Uri.parse(url),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
@@ -425,7 +426,6 @@ class DiaryEditBloc extends Bloc<DiaryEditEvent, DiaryEditState> {
|
||||
body: json.encode(credentials),
|
||||
encoding: utf8);
|
||||
|
||||
print(response.body);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user