feat(feed): Figma layouts implementation

This commit is contained in:
2024-05-17 10:58:23 +03:00
parent 02cd34a4ad
commit 705dd15bf0
2 changed files with 2 additions and 3 deletions

View File

@@ -7,7 +7,6 @@ import 'package:eatvio_app/presentation/chat/chat_select_screen/models/chat_entr
/// and is typically used to hold data that is passed between different parts of the application.
class ChatSelectModel extends Equatable {
ChatSelectModel({this.chatList = const []});
List<ChatItemModel> chatList;
ChatSelectModel copyWith({List<ChatItemModel>? chatList}) {
return ChatSelectModel(

View File

@@ -136,8 +136,8 @@ class BlogPostBloc extends Bloc<BlogPostEvent, BlogPostState> {
for (int i = 0; i < comments.length; i++) {
list.add(CommentModel(
id: comments[i]['id'].toString(),
userImage: '',
username: 'Вася Пупкин',
userImage: comments[i]['profile_photo_path'],
username: comments[i]['name'],
dateText: DateFormat('dd.MM')
.format(DateTime.parse(comments[i]['updated_at'])),
greetingText: comments[i]['body']));