From 107379d9fe56c0677585a565988968ce5ac0e312 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 20 Oct 2024 16:15:24 +0800 Subject: [PATCH] :bug: Bug fixes --- lib/screens/account/notification.dart | 6 ++++-- lib/widgets/attachments/attachment_list.dart | 12 +++++++----- lib/widgets/posts/post_item.dart | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/screens/account/notification.dart b/lib/screens/account/notification.dart index a29fd3f..8e7f05f 100644 --- a/lib/screens/account/notification.dart +++ b/lib/screens/account/notification.dart @@ -121,9 +121,11 @@ class _NotificationScreenState extends State { Badge( label: Row( children: [ - const Icon( + Icon( Icons.new_releases_outlined, - color: Colors.white, + color: Theme.of(context) + .colorScheme + .onSurface, size: 12, ), const Gap(4), diff --git a/lib/widgets/attachments/attachment_list.dart b/lib/widgets/attachments/attachment_list.dart index dedc16c..169d109 100644 --- a/lib/widgets/attachments/attachment_list.dart +++ b/lib/widgets/attachments/attachment_list.dart @@ -420,11 +420,13 @@ class AttachmentListEntry extends StatelessWidget { }, ), if (item!.isMature && !showMature) - BackdropFilter( - filter: ImageFilter.blur(sigmaX: 100, sigmaY: 100), - child: Container( - decoration: BoxDecoration( - color: Colors.black.withOpacity(0.5), + ClipRect( + child: BackdropFilter( + filter: ImageFilter.blur(sigmaX: 100, sigmaY: 100), + child: Container( + decoration: BoxDecoration( + color: Colors.black.withOpacity(0.5), + ), ), ), ), diff --git a/lib/widgets/posts/post_item.dart b/lib/widgets/posts/post_item.dart index de01978..8203d93 100644 --- a/lib/widgets/posts/post_item.dart +++ b/lib/widgets/posts/post_item.dart @@ -137,7 +137,7 @@ class _PostItemState extends State { padding: widget.padding, isCompact: true, isNonScrollAttachment: widget.isNonScrollAttachment, - ).paddingOnly(left: 14, top: 4), + ).paddingOnly(top: 4), ], ); }