Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Username1548
2024-12-23 15:39:02 +07:00
54 changed files with 3149 additions and 2929 deletions

View File

@@ -215,6 +215,9 @@ class _FeedScreenState extends State<FeedScreen> {
),
SizedBox(width: 12),
switch (_selectedChipIndex) {
1 => _addItemButton(
onTap: () => GoRouter.of(context).pushNamed('recipeCreateScreen'),
),
2 => AddItemButton(
onTap: state.profile?.role == 'consultant' ? () => GoRouter.of(context).pushNamed(CreateDietScreen.name) : null,
),