forked from eatvio/eatvio_app
fix(profile): Error is not server related (Ivalid data in mySQL database - garbage seeded in city and country fields)
This commit is contained in:
@@ -51,8 +51,8 @@ class MySettingsScreen extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: ListView(
|
||||
children: [
|
||||
//SectionTitle('Язык'),
|
||||
//LanguageDropdown(),
|
||||
SectionTitle('Язык'),
|
||||
LanguageDropdown(),
|
||||
SectionTitle('Уведомления'),
|
||||
NotificationSwitch('Уведомление об обновлениях'),
|
||||
NotificationSwitch('Напоминания о заполнении'),
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user