forked from eatvio/eatvio_app
<refactor>[profile]: Finished client-side validation of weight_measures and circumference_measures according to API specifics
This commit is contained in:
@@ -183,19 +183,11 @@ class MyProfileScreen extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
SizedBox(height: 50.v),
|
||||
/*_buildChart(
|
||||
_buildChart(
|
||||
context,
|
||||
_bodyMassIndex(
|
||||
state.chartPoints?.values
|
||||
.map<int>((e) => e['weight'])
|
||||
.toList()
|
||||
.map((i) => i.toDouble())
|
||||
.toList() ??
|
||||
[10.0, 20.0, 30.0, 40.0],
|
||||
_bodyMassIndex(state.chartPoints ?? [0.0, 0.0, 0.0, 0.0],
|
||||
state.userDetails?['height'].toInt() ?? 160),
|
||||
state.chartPoints?.values
|
||||
.map<String>((e) => e['created_at'])
|
||||
.toList()),*/
|
||||
state.chartDates),
|
||||
]);
|
||||
case 3: //График обхватов
|
||||
return GestureDetector(
|
||||
@@ -210,13 +202,9 @@ class MyProfileScreen extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
SizedBox(height: 30.v),
|
||||
/*_buildCircumferenceChart(
|
||||
context,
|
||||
state.circumferences,
|
||||
state.chartPoints?.values
|
||||
.map<String>((e) => e['created_at'])
|
||||
.toList()),
|
||||
_buildChartLegend()*/
|
||||
_buildCircumferenceChart(
|
||||
context, state.circumferences, state.chartDates),
|
||||
_buildChartLegend()
|
||||
]));
|
||||
default:
|
||||
return Text('text', style: TextStyle(fontSize: 16.0));
|
||||
|
||||
Reference in New Issue
Block a user