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),
|
padding: const EdgeInsets.all(16.0),
|
||||||
child: ListView(
|
child: ListView(
|
||||||
children: [
|
children: [
|
||||||
//SectionTitle('Язык'),
|
SectionTitle('Язык'),
|
||||||
//LanguageDropdown(),
|
LanguageDropdown(),
|
||||||
SectionTitle('Уведомления'),
|
SectionTitle('Уведомления'),
|
||||||
NotificationSwitch('Уведомление об обновлениях'),
|
NotificationSwitch('Уведомление об обновлениях'),
|
||||||
NotificationSwitch('Напоминания о заполнении'),
|
NotificationSwitch('Напоминания о заполнении'),
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class _ExpandableListState extends State<ExpandableList> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_buildForm(BuildContext context, MyProfileLoadedState state) {
|
_buildForm(BuildContext context, MyProfileLoadedState state) {
|
||||||
/*List<String> cities = [
|
List<String> cities = [
|
||||||
'Москва',
|
'Москва',
|
||||||
'Санкт-Петербург',
|
'Санкт-Петербург',
|
||||||
'Новосибирск',
|
'Новосибирск',
|
||||||
@@ -115,7 +115,7 @@ class _ExpandableListState extends State<ExpandableList> {
|
|||||||
];
|
];
|
||||||
List<String> countries = [
|
List<String> countries = [
|
||||||
'Россия',
|
'Россия',
|
||||||
];*/
|
];
|
||||||
final digitsOnly = FilteringTextInputFormatter.digitsOnly;
|
final digitsOnly = FilteringTextInputFormatter.digitsOnly;
|
||||||
return Column(children: [
|
return Column(children: [
|
||||||
TextField(
|
TextField(
|
||||||
@@ -130,7 +130,7 @@ class _ExpandableListState extends State<ExpandableList> {
|
|||||||
decoration: InputDecoration(labelText: 'date_of_birth'.tr),
|
decoration: InputDecoration(labelText: 'date_of_birth'.tr),
|
||||||
controller: state.dateFormController,
|
controller: state.dateFormController,
|
||||||
onTap: inputTime(context, state)),
|
onTap: inputTime(context, state)),
|
||||||
/*DropdownButtonFormField<String>(
|
DropdownButtonFormField<String>(
|
||||||
value: state.selectedCountry,
|
value: state.selectedCountry,
|
||||||
hint: Text(state.selectedCountry ?? "Не выбрано"),
|
hint: Text(state.selectedCountry ?? "Не выбрано"),
|
||||||
onChanged: setCountry(state),
|
onChanged: setCountry(state),
|
||||||
@@ -153,7 +153,7 @@ class _ExpandableListState extends State<ExpandableList> {
|
|||||||
);
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
decoration: InputDecoration(labelText: 'city_of_living'.tr),
|
decoration: InputDecoration(labelText: 'city_of_living'.tr),
|
||||||
),*/
|
),
|
||||||
TextField(
|
TextField(
|
||||||
controller: state.weightFormController,
|
controller: state.weightFormController,
|
||||||
decoration: InputDecoration(labelText: 'weight_measurements'.tr),
|
decoration: InputDecoration(labelText: 'weight_measurements'.tr),
|
||||||
|
|||||||
Reference in New Issue
Block a user