feat: Introduce user-generated content features, including recipe creation and management, and blog post creation.

This commit is contained in:
mso7nueh
2026-02-26 02:52:08 +03:00
parent 0641513ebe
commit 0b2e026d1d
5 changed files with 127 additions and 68 deletions

View File

@@ -134,7 +134,7 @@ class _RecipeCreateScreenState extends State<RecipeCreateScreen> {
padding: const EdgeInsets.all(16),
alignment: Alignment.center,
child: Text(
widget.recipe != null ? 'Обновить' : 'Опубликовать',
(widget.recipe != null && widget.recipe?.state != 'drafted') ? 'Обновить' : 'Опубликовать',
style: const TextStyle(fontSize: 16, color: Colors.white, fontWeight: FontWeight.w600),
),
),
@@ -180,7 +180,7 @@ class _RecipeCreateScreenState extends State<RecipeCreateScreen> {
padding: const EdgeInsets.all(16),
alignment: Alignment.center,
child: Text(
'Сохранить как черновик',
widget.recipe != null ? 'Обновить черновик' : 'Сохранить как черновик',
style: TextStyle(fontSize: 16, color: appTheme.blueA400, fontWeight: FontWeight.w600),
),
),