forked from eatvio/eatvio_app
feat(profile): add button for weight and circumferences
This commit is contained in:
@@ -112,8 +112,16 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
),
|
||||
Builder(
|
||||
builder: (context) {
|
||||
if (_selectedChipIndex == 0) return WeightChartWidget(chartPoints: chartPoints);
|
||||
if (_selectedChipIndex == 1) return CircumferenceChartWidget(chartData: chartData);
|
||||
if (_selectedChipIndex == 0)
|
||||
return WeightChartWidget(
|
||||
chartPoints: chartPoints,
|
||||
profileCubit: context.read<ProfileCubit>(),
|
||||
);
|
||||
if (_selectedChipIndex == 1)
|
||||
return CircumferenceChartWidget(
|
||||
chartData: chartData,
|
||||
profileCubit: context.read<ProfileCubit>(),
|
||||
);
|
||||
if (_selectedChipIndex == 2)
|
||||
return ImtChartWidget(chartPoints: chartPoints);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user