fix(feed): add blog post

This commit is contained in:
mso7nueh
2024-10-04 16:10:11 +03:00
parent 26820997fc
commit e5d23208d5
2 changed files with 17 additions and 2 deletions

View File

@@ -10,6 +10,21 @@ class CertificatesAndDiplomsScreen extends StatefulWidget {
class _CertificatesAndDiplomsScreenState extends State<CertificatesAndDiplomsScreen> {
@override
Widget build(BuildContext context) {
return const Placeholder();
return SingleChildScrollView(
padding: EdgeInsets.only(bottom: 80, right: 16, left: 16, top: 16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Добавьте дипломы\nи сертификаты',
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.w700,
height: 1.1,
),
),
],
),
);
}
}

View File

@@ -83,7 +83,7 @@ class BlogPostCreateBloc extends Bloc<BlogPostCreateEvent, BlogPostCreateState>
'description': description,
'state': 'active',
'youtube_url': youtubeURL,
'image': await MultipartFile.fromFile(image!.path, filename: image.name),
'image': image != null ? await MultipartFile.fromFile(image.path, filename: image.name) : null,
});
final response = await sl<Dio>().post(