forked from eatvio/eatvio_app
refactor(app): Assemble release
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user