internet connection handling

This commit is contained in:
Username1548
2025-02-03 15:32:12 +07:00
parent 4242265830
commit 589122581b
30 changed files with 1384 additions and 666 deletions

View File

@@ -304,7 +304,7 @@ class CreateDietCubit extends Cubit<CreateDietState> {
}
if (state.dietData.name == null || state.dietData.name == '') {
result = false;
emit(state.copyWith(dietNameError: 'Поле не заполненно'));
emit(state.copyWith(dietNameError: 'Поле не заполнено'));
}
if ((state.dietData.details?.length ?? 0) < 3) {
result = false;
@@ -312,7 +312,7 @@ class CreateDietCubit extends Cubit<CreateDietState> {
}
if (state.dietData.details == null || state.dietData.details == '') {
result = false;
emit(state.copyWith(dietDescriptionError: 'Поле не заполненно'));
emit(state.copyWith(dietDescriptionError: 'Поле не заполнено'));
}
if (state.dietData.duration == null) {
result = false;