refactor(app): Assemble release

This commit is contained in:
2024-04-11 16:24:10 +03:00
parent bbbc20a15a
commit 5122665370
5 changed files with 45 additions and 20 deletions

View File

@@ -34,7 +34,7 @@ class CustomBottomBarState extends State<CustomBottomBar> {
type: BottomBarEnum.tf,
),
BottomMenuModel(
icon: ImageConstant.imgNavBlueGray40024x23,
icon: ImageConstant.imgNavPrimary,
activeIcon: ImageConstant.imgNavBlueGray40024x23,
title: "Настройки",
type: BottomBarEnum.tf,

View File

@@ -340,7 +340,7 @@ class _ExpandableListState extends State<ExpandableList> {
'weight': state?.weightFormController?.text,
'blood_pressure_up': state?.upPressureFormController?.text,
'blood_pressure_down': state?.downPressureFormController?.text,
'about_alergy': state?.allergiesFormController?.text,
'about_alergy': state?.allergiesFormController?.text ?? 'Нет аллергий',
'about_taking_pils': state?.pillsFormController?.text,
'about_sport_hobbies': state?.sportsFormController?.text,
'favorite_foods': state?.favoriteFormController?.text,
@@ -362,6 +362,7 @@ class _ExpandableListState extends State<ExpandableList> {
encoding: utf8,
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer $token',
},
);
@@ -373,11 +374,12 @@ class _ExpandableListState extends State<ExpandableList> {
AppRoutes.myProfile,
);
} else {
var res = await jsonDecode(response.body);
showDialog(
context: context,
builder: (context) => AlertDialog(
title: Text('Ошибка'),
content: Text('Ошибка при отправке данных профиля'.tr),
content: Text(res['message']),
actions: [
TextButton(
onPressed: onTapOk(context),