forked from eatvio/eatvio_app
Small fixes
This commit is contained in:
@@ -44,30 +44,30 @@ class MyProfileBloc extends Bloc<MyProfileEvent, MyProfileState> {
|
||||
if (state is MyProfileLoadedState) {
|
||||
// Если текущее состояние уже загружено, обновляем его
|
||||
emit((state as MyProfileLoadedState).copyWith(
|
||||
chartPoints: data['chartPoints'],
|
||||
circumferences: data['circumferences'],
|
||||
user: data['user'],
|
||||
userDetails: data['userDetails'],
|
||||
token: token,
|
||||
chartPoints: data['chartPoints'],
|
||||
plans: data['plans'],
|
||||
token: token,
|
||||
chestCircumferenceController: TextEditingController(),
|
||||
waistCircumferenceController: TextEditingController(),
|
||||
hipCircumferenceController: TextEditingController(),
|
||||
weightController: TextEditingController(),
|
||||
circumferences: data['circumferences'],
|
||||
));
|
||||
} else {
|
||||
// Если текущее состояние - начальное, создаем новое загруженное состояние
|
||||
emit(MyProfileLoadedState(
|
||||
chartPoints: data['chartPoints'],
|
||||
circumferences: data['circumferences'],
|
||||
user: data['user'],
|
||||
userDetails: data['userDetails'],
|
||||
token: token,
|
||||
chartPoints: data['chartPoints'],
|
||||
plans: data['plans'],
|
||||
token: token,
|
||||
chestCircumferenceController: TextEditingController(),
|
||||
waistCircumferenceController: TextEditingController(),
|
||||
hipCircumferenceController: TextEditingController(),
|
||||
weightController: TextEditingController(),
|
||||
circumferences: data['circumferences'],
|
||||
));
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -643,7 +643,9 @@ class MyProfileScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: EdgeInsets.only(left: 15.h),
|
||||
child: Text("plans_complete".tr,
|
||||
style: CustomTextStyles.titleSmallBluegray800)),
|
||||
style: CustomTextStyles.titleMediumBlack.copyWith(
|
||||
color: appTheme.black900))),
|
||||
SizedBox(height: 5.v),
|
||||
Container(
|
||||
decoration: AppDecoration.outlineBlueGray
|
||||
.copyWith(borderRadius: BorderRadiusStyle.roundedBorder5),
|
||||
|
||||
Reference in New Issue
Block a user