forked from eatvio/eatvio_app
feat(feed, profile): добавлен переход на страинцу автора в посте, рецепте и дете. при нажатии на изображение в рецепте и диеты теперь переход на страницу с подробнее.
This commit is contained in:
@@ -79,9 +79,9 @@ class _BlogPostCreateScreenState extends State<BlogPostCreateScreen> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (state.youtubeURL!.text.isEmpty) Text('Изображение поста'),
|
||||
if (state.youtubeURL!.text.isEmpty) SizedBox(height: 8),
|
||||
if (state.youtubeURL!.text.isEmpty) _buildAddPhoto(context, state),
|
||||
Text('Изображение поста'),
|
||||
SizedBox(height: 8),
|
||||
_buildAddPhoto(context, state),
|
||||
SizedBox(height: 16),
|
||||
Text('Заголовок'),
|
||||
SizedBox(height: 8),
|
||||
@@ -97,9 +97,9 @@ class _BlogPostCreateScreenState extends State<BlogPostCreateScreen> {
|
||||
minLines: 1,
|
||||
),
|
||||
SizedBox(height: 16),
|
||||
if (state.image == null) Text('Ссылка на видео'),
|
||||
if (state.image == null) SizedBox(height: 8),
|
||||
if (state.image == null) CustomTextFormField(
|
||||
Text('Ссылка на видео'),
|
||||
SizedBox(height: 8),
|
||||
CustomTextFormField(
|
||||
controller: state.youtubeURL,
|
||||
),
|
||||
SizedBox(height: 80),
|
||||
@@ -116,6 +116,7 @@ _submitForm(BuildContext context, String title, String description, String youtu
|
||||
|
||||
_buildAddPhoto(BuildContext context, BlogPostCreateLoadedState state) {
|
||||
bool isLoading = state.isLoading;
|
||||
|
||||
return GestureDetector(
|
||||
onTap: addImage(context, isLoading),
|
||||
child: Stack(
|
||||
|
||||
Reference in New Issue
Block a user