feat(feed): about diets screen

This commit is contained in:
mso7nueh
2024-08-09 15:10:27 +03:00
parent 6620ed5337
commit 4af39985ee
5 changed files with 122 additions and 4 deletions

View File

@@ -64,8 +64,10 @@ class _FeedScreenState extends State<FeedScreen> {
return _buildAllBlogPosts();
else if (_selectedChipIndex == 1)
return _buildAllRecipes();
else
else if (_selectedChipIndex == 2)
return _buildDiets();
else
return Center(child: Text(chipsLabelList[_selectedChipIndex]));
},
),
),

View File

@@ -84,7 +84,7 @@ class _DietsWidgetState extends State<DietsWidget> {
),
SizedBox(width: 4),
Text(
'0',
widget.datum.totalLikes.toString(),
style: TextStyle(
fontSize: 12,
color: Colors.black,
@@ -113,7 +113,7 @@ class _DietsWidgetState extends State<DietsWidget> {
),
SizedBox(width: 4),
Text(
'0',
widget.datum.totalViews.toString(),
style: TextStyle(
fontSize: 12,
color: Colors.black,