Upgrade from 3.32.6 to 3.41.9
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user