From 93a54ae19ba68d49da8171e9fb7ee2edc8275021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C3=ABl=20Perret?= Date: Tue, 5 May 2026 21:13:54 +0200 Subject: [PATCH] feat : Modal pour commentaires --- lib/ui/common/post_card_widget.dart | 33 +++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/lib/ui/common/post_card_widget.dart b/lib/ui/common/post_card_widget.dart index d89e206..e363b45 100644 --- a/lib/ui/common/post_card_widget.dart +++ b/lib/ui/common/post_card_widget.dart @@ -230,11 +230,36 @@ class _PostCardWidgetState extends State { void showCommentSheet() { showModalBottomSheet( context: context, + isScrollControlled: true, builder: (context) { - return Container( - height: 1000, - child: Center( - child: Text('Section des commentaires'), + return FractionallySizedBox( + heightFactor: 0.9, + child: Container( + padding: const EdgeInsets.all(16.0), + child: Column( + children: [ + Container( + width: 40, + height: 4, + margin: const EdgeInsets.only(bottom: 16.0), + decoration: BoxDecoration( + color: Colors.grey[300], + borderRadius: BorderRadius.circular(2), + ), + ), + Expanded( + child: Center( + child: Text( + 'Section des commentaires (à implémenter)', + style: Theme.of(context).textTheme.headlineMedium?.copyWith( + color: Colors.grey[600], + ), + textAlign: TextAlign.center, + ), + ), + ), + ], + ), ), ); },