plans filters ready

This commit is contained in:
Username1548
2024-12-16 20:31:23 +07:00
parent 067b10ed7f
commit 27241aebac
45 changed files with 1806 additions and 657 deletions

View File

@@ -1,3 +1,4 @@
import 'dart:developer';
import 'dart:io';
import 'package:eatvio_app/core/image_compressing/image_compress_utility.dart';
import 'package:eatvio_app/features/chat/repositories/chat_repository.dart';
@@ -45,7 +46,8 @@ class ProfileCubit extends Cubit<ProfileState> {
circumferencePoints: await profileRepository.getCircumferences(period: period),
),
);
} catch (e) {
} catch (e, stackTrace) {
log(e.toString(), stackTrace: stackTrace);
emit(ProfileState.error(errorMessage: e.toString()));
}
}

View File

@@ -273,7 +273,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
height: 378,
child: PageView.builder(
itemBuilder: (BuildContext context, int index) {
return PlanWidget(planModel: state.plansList[index]);
return PlanWidget(plan: state.plansList[index], index: index,);
},
onPageChanged: (bullet) {
setState(() {