forked from eatvio/eatvio_app
feat(chat): add trailing comma rules
This commit is contained in:
@@ -51,7 +51,7 @@ class _BottomNavigationBarWidgetState extends State<BottomNavigationBarWidget> {
|
||||
items: [
|
||||
PopupMenuItem(
|
||||
child: CustomNavigationMenu(),
|
||||
)
|
||||
),
|
||||
],
|
||||
position: RelativeRect.fromLTRB(size.width, size.height, 0, 0),
|
||||
);
|
||||
|
||||
@@ -28,7 +28,7 @@ class _AboutListState extends State<AboutList> {
|
||||
style: TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.bold),
|
||||
fontWeight: FontWeight.bold,),
|
||||
),
|
||||
Icon(isExpanded ? Icons.arrow_drop_up : Icons.arrow_drop_down),
|
||||
],
|
||||
@@ -39,7 +39,7 @@ class _AboutListState extends State<AboutList> {
|
||||
padding: const EdgeInsets.only(left: 16.0),
|
||||
child: Column(
|
||||
//children: widget.items.map((item) => Text(item)).toList(),
|
||||
children: [Text(widget.items.join('\n'))]),
|
||||
children: [Text(widget.items.join('\n'))],),
|
||||
),
|
||||
Divider(),
|
||||
],
|
||||
|
||||
@@ -39,7 +39,7 @@ class _ExpandableListState extends State<ExpandableList> {
|
||||
style: TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.bold),
|
||||
fontWeight: FontWeight.bold,),
|
||||
),
|
||||
Icon(isExpanded ? Icons.arrow_drop_up : Icons.arrow_drop_down),
|
||||
],
|
||||
@@ -66,7 +66,7 @@ class _ExpandableListState extends State<ExpandableList> {
|
||||
// Другие состояния, если они есть.
|
||||
return Container(); // Пустой контейнер для необработанных состояний.
|
||||
}
|
||||
}),
|
||||
},),
|
||||
),
|
||||
Divider(),
|
||||
],
|
||||
@@ -122,7 +122,7 @@ class _ExpandableListState extends State<ExpandableList> {
|
||||
'низкий (1-3 тренировки в неделю по 20 мин)',
|
||||
'умеренный (3-4 тренировки в неделю по 30-60 мин)',
|
||||
'высокий (5-7 тренировок по 30-60 мин)',
|
||||
'экстремальный (несколько интенсивных тренировок в день)'
|
||||
'экстремальный (несколько интенсивных тренировок в день)',
|
||||
];
|
||||
final digitsOnly = FilteringTextInputFormatter.digitsOnly;
|
||||
return Column(children: [
|
||||
@@ -137,7 +137,7 @@ class _ExpandableListState extends State<ExpandableList> {
|
||||
TextField(
|
||||
decoration: InputDecoration(labelText: 'date_of_birth'.tr),
|
||||
controller: state.dateFormController,
|
||||
onTap: inputTime(context, state)),
|
||||
onTap: inputTime(context, state),),
|
||||
DropdownButtonFormField<String>(
|
||||
value: state.selectedCountry,
|
||||
hint: Text(state.selectedCountry ?? "Не выбрано"),
|
||||
@@ -166,37 +166,37 @@ class _ExpandableListState extends State<ExpandableList> {
|
||||
controller: state.weightFormController,
|
||||
decoration: InputDecoration(labelText: 'weight_measurements'.tr),
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly]),
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly],),
|
||||
TextField(
|
||||
controller: state.heightFormController,
|
||||
decoration: InputDecoration(labelText: 'height_measurements'.tr),
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly]),
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly],),
|
||||
TextField(
|
||||
controller: state.chestCircumferenceFormController,
|
||||
decoration: InputDecoration(labelText: 'chest_circumference'.tr),
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly]),
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly],),
|
||||
TextField(
|
||||
controller: state.waistCircumferenceFormController,
|
||||
decoration: InputDecoration(labelText: 'waist_circumference'.tr),
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly]),
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly],),
|
||||
TextField(
|
||||
controller: state.hipCircumferenceFormController,
|
||||
decoration: InputDecoration(labelText: 'hip_circumference'.tr),
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly]),
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly],),
|
||||
TextField(
|
||||
controller: state.upPressureFormController,
|
||||
decoration: InputDecoration(labelText: 'up_pressure'.tr),
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly]),
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly],),
|
||||
TextField(
|
||||
controller: state.downPressureFormController,
|
||||
decoration: InputDecoration(labelText: 'down_pressure'.tr),
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly]),
|
||||
inputFormatters: <TextInputFormatter>[digitsOnly],),
|
||||
TextField(
|
||||
controller: state.allergiesFormController,
|
||||
decoration: InputDecoration(labelText: 'allergies_presence'.tr),
|
||||
@@ -259,8 +259,8 @@ class _ExpandableListState extends State<ExpandableList> {
|
||||
onPressed: () => sendProfileData(state),
|
||||
buttonStyle: CustomButtonStyles.outlinePrimaryTL15,
|
||||
text: "save".tr.toUpperCase(),
|
||||
margin: EdgeInsets.only(top: 20.h, bottom: 20.h)),
|
||||
]);
|
||||
margin: EdgeInsets.only(top: 20.h, bottom: 20.h),),
|
||||
],);
|
||||
}
|
||||
|
||||
sendData(MyProfileLoadedState state) {
|
||||
@@ -382,7 +382,7 @@ class _ExpandableListState extends State<ExpandableList> {
|
||||
}
|
||||
|
||||
Future<http.Response> _sendHttpRequest(
|
||||
Map<String, dynamic> profileData, String apiUrl, String? token) {
|
||||
Map<String, dynamic> profileData, String apiUrl, String? token,) {
|
||||
return http.post(
|
||||
Uri.parse(apiUrl),
|
||||
body: json.encode(profileData),
|
||||
|
||||
@@ -30,7 +30,7 @@ class _HyperState extends State<HyperSwitch> {
|
||||
Text(
|
||||
widget.title,
|
||||
style: TextStyle(
|
||||
color: Colors.black, fontSize: 14, fontWeight: FontWeight.bold),
|
||||
color: Colors.black, fontSize: 14, fontWeight: FontWeight.bold,),
|
||||
),
|
||||
Switch(
|
||||
value: switchValue,
|
||||
|
||||
@@ -30,7 +30,7 @@ class _HypoState extends State<HypoSwitch> {
|
||||
Text(
|
||||
widget.title,
|
||||
style: TextStyle(
|
||||
color: Colors.black, fontSize: 14, fontWeight: FontWeight.bold),
|
||||
color: Colors.black, fontSize: 14, fontWeight: FontWeight.bold,),
|
||||
),
|
||||
Switch(
|
||||
value: switchValue,
|
||||
|
||||
@@ -45,7 +45,7 @@ class CustomIconButton extends StatelessWidget {
|
||||
color: Colors.black,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(9)),
|
||||
border: const Border.fromBorderSide(
|
||||
BorderSide(color: Colors.blueGrey, width: 1)),
|
||||
BorderSide(color: Colors.blueGrey, width: 1),),
|
||||
),
|
||||
child: child,
|
||||
),
|
||||
|
||||
@@ -26,7 +26,7 @@ class MenuItem extends StatelessWidget {
|
||||
CustomImageView(imagePath: icon),
|
||||
SizedBox(
|
||||
width:
|
||||
8.0), // Добавляем небольшой отступ между иконкой и текстом
|
||||
8.0,), // Добавляем небольшой отступ между иконкой и текстом
|
||||
Text(text),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -21,7 +21,7 @@ class _NotificationSwitchState extends State<NotificationSwitch> {
|
||||
Text(
|
||||
widget.title,
|
||||
style: TextStyle(
|
||||
color: Colors.black, fontSize: 14, fontWeight: FontWeight.bold),
|
||||
color: Colors.black, fontSize: 14, fontWeight: FontWeight.bold,),
|
||||
),
|
||||
Switch(
|
||||
value: switchValue,
|
||||
|
||||
Reference in New Issue
Block a user