Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Username1548
2024-12-04 22:08:00 +07:00
37 changed files with 1513 additions and 380 deletions

View File

@@ -14,6 +14,7 @@ class CreateDietCubit extends Cubit<CreateDietState> {
final ProfileRepository profileRepository;
final GlossaryRepository glossaryRepository;
static const _dietStateValues = ['active', 'personal', 'draft'];
CreateDietCubit({required this.profileRepository, required this.createDietRepository, required this.glossaryRepository}) : super(CreateDietState.initial());
void setDetails(String text) {
@@ -238,7 +239,13 @@ class CreateDietCubit extends Cubit<CreateDietState> {
),
details: state.dietData.details ?? '',
dailySchedule: state.dietData.dailySchedule ?? [],
author: Author(authorSlug: authorProfile.slug, authorName: authorProfile.name, authorProfileIcon: authorProfile.profilePhotoUrl, authorIsMe: false),
author: Author(
authorSlug: authorProfile.slug,
authorName: authorProfile.name,
authorProfileIcon: authorProfile.profilePhotoUrl,
authorIsMe: false,
isEntitySubscribedByMe: false,
),
totalLikes: 0,
totalViews: 0,
totalComments: 0,