From 5b6a5d90464c449fddc0726691f2cb18079d770a Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 2 Aug 2024 05:04:31 +0800 Subject: [PATCH] :bug: Fix post popup color mismatch --- lib/widgets/posts/post_list.dart | 8 -------- lib/widgets/posts/post_quick_action.dart | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/widgets/posts/post_list.dart b/lib/widgets/posts/post_list.dart index 3b42e99..1dfe5c3 100644 --- a/lib/widgets/posts/post_list.dart +++ b/lib/widgets/posts/post_list.dart @@ -3,7 +3,6 @@ import 'package:get/get.dart'; import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart'; import 'package:solian/models/post.dart'; import 'package:solian/providers/auth.dart'; -import 'package:solian/router.dart'; import 'package:solian/widgets/posts/post_action.dart'; import 'package:solian/widgets/posts/post_item.dart'; @@ -71,13 +70,6 @@ class PostListEntryWidget extends StatelessWidget { isShowEmbed: isShowEmbed, isClickable: isNestedClickable, ).paddingSymmetric(vertical: 8), - onTap: () { - if (!isClickable) return; - AppRouter.instance.pushNamed( - 'postDetail', - pathParameters: {'id': item.id.toString()}, - ); - }, onLongPress: () { final AuthProvider auth = Get.find(); if (auth.isAuthorized.isFalse) return; diff --git a/lib/widgets/posts/post_quick_action.dart b/lib/widgets/posts/post_quick_action.dart index ff9d7c0..75f22f6 100644 --- a/lib/widgets/posts/post_quick_action.dart +++ b/lib/widgets/posts/post_quick_action.dart @@ -102,6 +102,7 @@ class _PostQuickActionState extends State { onPressed: () { showModalBottomSheet( useRootNavigator: true, + backgroundColor: Theme.of(context).colorScheme.surface, context: context, builder: (context) { return PostReplyListPopup(item: widget.item);