From ecc79368a1a7c6914d6badab479c070fc27729d4 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 26 Mar 2025 00:29:00 +0800 Subject: [PATCH] :bug: Fix attachment border in list --- lib/widgets/attachment/attachment_list.dart | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/widgets/attachment/attachment_list.dart b/lib/widgets/attachment/attachment_list.dart index 4ac113b..7e36325 100644 --- a/lib/widgets/attachment/attachment_list.dart +++ b/lib/widgets/attachment/attachment_list.dart @@ -224,8 +224,10 @@ class _AttachmentListState extends State { (widget.data[idx]?.data['ratio'] ?? 1).toDouble(), child: GestureDetector( onTap: () { - if (widget.data[idx]?.mediaType != SnMediaType.image) + if (widget.data[idx]?.mediaType != + SnMediaType.image) { return; + } context.pushTransparentRoute( AttachmentZoomView( data: widget.data @@ -246,8 +248,10 @@ class _AttachmentListState extends State { Container( decoration: BoxDecoration( color: backgroundColor, - border: - Border(top: borderSide, bottom: borderSide), + border: Border.all( + width: 1, + color: Theme.of(context).dividerColor, + ), borderRadius: AttachmentList.kDefaultRadius, ), child: ClipRRect( @@ -263,8 +267,8 @@ class _AttachmentListState extends State { right: 8, bottom: 8, child: Chip( - label: - Text('${idx + 1}/${widget.data.length}')), + label: Text('${idx + 1}/${widget.data.length}'), + ), ), ], ),