feat: implement recipe creation feature including state management, ingredient/step management, image handling, and validation.

This commit is contained in:
mso7nueh
2026-01-22 00:42:30 +03:00
parent de8f879f59
commit e76c1aed20
4 changed files with 37 additions and 2 deletions

View File

@@ -228,7 +228,9 @@ class _FeedScreenContentState extends State<FeedScreenContent> {
),
const SizedBox(width: 12),
switch (_selectedChipIndex) {
1 => AddItemButton(onTap: () => GoRouter.of(context).pushNamed(RecipeCreateScreen.name)),
1 => AddItemButton(
onTap: state.profile?.roles.contains('consultant') ?? false ? () => GoRouter.of(context).pushNamed(RecipeCreateScreen.name) : null,
),
2 => AddItemButton(
onTap: state.profile?.roles.contains('consultant') ?? false
? () async {