From c5c7033ada003e79e1a045deda03d04ac800d2cf Mon Sep 17 00:00:00 2001 From: maxxkim Date: Thu, 4 Apr 2024 12:23:31 +0300 Subject: [PATCH] fix(profile): Error is not server related (Ivalid data in mySQL database - garbage seeded in city and country fields) --- .../profile/my_profile_screen/my_settings_screen.dart | 4 ++-- lib/widgets/custom_expandable_list.dart | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/presentation/profile/my_profile_screen/my_settings_screen.dart b/lib/presentation/profile/my_profile_screen/my_settings_screen.dart index 923597a6..b514939b 100644 --- a/lib/presentation/profile/my_profile_screen/my_settings_screen.dart +++ b/lib/presentation/profile/my_profile_screen/my_settings_screen.dart @@ -51,8 +51,8 @@ class MySettingsScreen extends StatelessWidget { padding: const EdgeInsets.all(16.0), child: ListView( children: [ - //SectionTitle('Язык'), - //LanguageDropdown(), + SectionTitle('Язык'), + LanguageDropdown(), SectionTitle('Уведомления'), NotificationSwitch('Уведомление об обновлениях'), NotificationSwitch('Напоминания о заполнении'), diff --git a/lib/widgets/custom_expandable_list.dart b/lib/widgets/custom_expandable_list.dart index bf299768..f20ac19e 100644 --- a/lib/widgets/custom_expandable_list.dart +++ b/lib/widgets/custom_expandable_list.dart @@ -81,7 +81,7 @@ class _ExpandableListState extends State { } _buildForm(BuildContext context, MyProfileLoadedState state) { - /*List cities = [ + List cities = [ 'Москва', 'Санкт-Петербург', 'Новосибирск', @@ -115,7 +115,7 @@ class _ExpandableListState extends State { ]; List countries = [ 'Россия', - ];*/ + ]; final digitsOnly = FilteringTextInputFormatter.digitsOnly; return Column(children: [ TextField( @@ -130,7 +130,7 @@ class _ExpandableListState extends State { decoration: InputDecoration(labelText: 'date_of_birth'.tr), controller: state.dateFormController, onTap: inputTime(context, state)), - /*DropdownButtonFormField( + DropdownButtonFormField( value: state.selectedCountry, hint: Text(state.selectedCountry ?? "Не выбрано"), onChanged: setCountry(state), @@ -153,7 +153,7 @@ class _ExpandableListState extends State { ); }).toList(), decoration: InputDecoration(labelText: 'city_of_living'.tr), - ),*/ + ), TextField( controller: state.weightFormController, decoration: InputDecoration(labelText: 'weight_measurements'.tr),