forked from eatvio/eatvio_app
plans filters ready
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(() {
|
||||
|
||||
Reference in New Issue
Block a user