feat(diary): add diary, calendar, meals, products, add product button, modal add product

This commit is contained in:
mso7nueh
2024-10-30 11:44:16 +03:00
parent 1883b93315
commit 784b550673
55 changed files with 867 additions and 1407 deletions

View File

@@ -53,7 +53,6 @@ class ChatRoomCubit extends Cubit<ChatRoomState> {
currentPage++;
} catch (e) {
print(e);
emit(ChatRoomState.error(errorMessage: 'Ошибка получеия данных'));
}
}
@@ -75,7 +74,6 @@ class ChatRoomCubit extends Cubit<ChatRoomState> {
isLoading: isLoading,
));
} catch (e) {
print(e);
emit(ChatRoomState.error(errorMessage: 'Ошибка получеия данных'));
}
}

View File

@@ -41,7 +41,6 @@ class ChatRepository {
media_data: multipartFiles.isEmpty ? null : multipartFiles,
);
} catch (e) {
print(e);
rethrow;
}
}
@@ -50,7 +49,6 @@ class ChatRepository {
try {
return (await chatService.getChatRoom(id: chatId))['chatRoom']!;
} catch (e) {
print(e);
rethrow;
}
}
@@ -59,7 +57,6 @@ class ChatRepository {
try {
return (await chatService.getChatRoomPreviews(query: query)).chatRooms;
} catch (e) {
print(e);
rethrow;
}
}
@@ -68,7 +65,6 @@ class ChatRepository {
try {
return (await chatService.getChatMessages(id: chatId, page: page));
} catch (e) {
print(e);
rethrow;
}
}
@@ -77,7 +73,6 @@ class ChatRepository {
try {
return (await chatService.getWebsocket());
} catch (e) {
print(e);
rethrow;
}
}
@@ -86,7 +81,6 @@ class ChatRepository {
try {
return (await chatService.getChatRoomIdByUserSlug(user: slug));
} catch (e) {
print(e);
rethrow;
}
}

View File

@@ -6,7 +6,7 @@ part of 'chat_service.dart';
// RetrofitGenerator
// **************************************************************************
// ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers,unused_element
// ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers,unused_element,unnecessary_string_interpolations
class _ChatService implements ChatService {
_ChatService(