forked from eatvio/eatvio_app
feat: Introduce user-generated content features, including recipe creation and management, and blog post creation.
This commit is contained in:
@@ -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),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user