Upgrade from 3.32.6 to 3.41.9

This commit is contained in:
Yaël Perret
2026-05-04 21:44:07 +02:00
parent 6429854028
commit 8fc0a6ff86
12 changed files with 24512 additions and 26093 deletions

View File

@@ -176,7 +176,7 @@ class _PostCardWidgetState extends State<PostCardWidget> {
_VerticalActionButton(
icon: Icons.comment_outlined,
count: widget.commentsCount,
onPressed: widget.onComment,
onPressed: showCommentSheet,
),
const SizedBox(height: 16),
_VerticalActionButton(
@@ -210,7 +210,7 @@ class _PostCardWidgetState extends State<PostCardWidget> {
_HorizontalActionButton(
icon: Icons.comment_outlined,
count: widget.commentsCount,
onPressed: widget.onComment,
onPressed: showCommentSheet,
),
const SizedBox(width: 16),
_HorizontalActionButton(
@@ -227,6 +227,20 @@ class _PostCardWidgetState extends State<PostCardWidget> {
);
}
void showCommentSheet() {
showModalBottomSheet(
context: context,
builder: (context) {
return Container(
height: 1000,
child: Center(
child: Text('Section des commentaires'),
),
);
},
);
}
String _formatDate(DateTime date) {
final now = DateTime.now();
final difference = now.difference(date);
@@ -557,3 +571,5 @@ class _HorizontalActionButtonState extends State<_HorizontalActionButton>
);
}
}
//class _HorizontalActionButton extends StatefulWidget