fix(profile): Error is not server related (Ivalid data in mySQL database - garbage seeded in city and country fields)

This commit is contained in:
2024-04-04 12:23:31 +03:00
parent 64c25f11fe
commit c5c7033ada
2 changed files with 6 additions and 6 deletions

View File

@@ -51,8 +51,8 @@ class MySettingsScreen extends StatelessWidget {
padding: const EdgeInsets.all(16.0),
child: ListView(
children: [
//SectionTitle('Язык'),
//LanguageDropdown(),
SectionTitle('Язык'),
LanguageDropdown(),
SectionTitle('Уведомления'),
NotificationSwitch('Уведомление об обновлениях'),
NotificationSwitch('Напоминания о заполнении'),

View File

@@ -81,7 +81,7 @@ class _ExpandableListState extends State<ExpandableList> {
}
_buildForm(BuildContext context, MyProfileLoadedState state) {
/*List<String> cities = [
List<String> cities = [
'Москва',
'Санкт-Петербург',
'Новосибирск',
@@ -115,7 +115,7 @@ class _ExpandableListState extends State<ExpandableList> {
];
List<String> countries = [
'Россия',
];*/
];
final digitsOnly = FilteringTextInputFormatter.digitsOnly;
return Column(children: [
TextField(
@@ -130,7 +130,7 @@ class _ExpandableListState extends State<ExpandableList> {
decoration: InputDecoration(labelText: 'date_of_birth'.tr),
controller: state.dateFormController,
onTap: inputTime(context, state)),
/*DropdownButtonFormField<String>(
DropdownButtonFormField<String>(
value: state.selectedCountry,
hint: Text(state.selectedCountry ?? "Не выбрано"),
onChanged: setCountry(state),
@@ -153,7 +153,7 @@ class _ExpandableListState extends State<ExpandableList> {
);
}).toList(),
decoration: InputDecoration(labelText: 'city_of_living'.tr),
),*/
),
TextField(
controller: state.weightFormController,
decoration: InputDecoration(labelText: 'weight_measurements'.tr),