feat : Widget commentaire

This commit is contained in:
Yaël Perret
2026-05-14 17:23:14 +02:00
parent a812a70b1d
commit 21e798b134
7 changed files with 246 additions and 33 deletions

23
lib/models/comment.g.dart Normal file
View File

@@ -0,0 +1,23 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'comment.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Comment _$CommentFromJson(Map<String, dynamic> json) => Comment(
id: json['id'] as String,
postId: json['postId'] as String,
content: json['content'] as String,
authorName: json['authorName'] as String,
authorImageUrl: json['authorImageUrl'] as String,
);
Map<String, dynamic> _$CommentToJson(Comment instance) => <String, dynamic>{
'id': instance.id,
'postId': instance.postId,
'content': instance.content,
'authorName': instance.authorName,
'authorImageUrl': instance.authorImageUrl,
};