forked from eatvio/eatvio_app
fix(feed): add blog post
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user