forked from eatvio/eatvio_app
feat(feed): add diets api and create blog post screen, fix status bar
This commit is contained in:
@@ -55,7 +55,14 @@ class _FeedScreenState extends State<FeedScreen> {
|
||||
),
|
||||
];
|
||||
},
|
||||
body: _selectedChipIndex == 0 ? _buildAllBlogPosts() : _buildAllRecipes(),
|
||||
body: Builder(
|
||||
builder: (BuildContext context) {
|
||||
if (_selectedChipIndex == 0)
|
||||
return _buildAllBlogPosts();
|
||||
else
|
||||
return _buildAllRecipes();
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user