From e0b485cc8166ca7c6066ae980ed92595025ca9bd Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 3 Aug 2024 14:00:52 +0800 Subject: [PATCH] :bug: Fix mis-style --- lib/screens/account/profile_page.dart | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/screens/account/profile_page.dart b/lib/screens/account/profile_page.dart index 4b6f639..2f27d5a 100644 --- a/lib/screens/account/profile_page.dart +++ b/lib/screens/account/profile_page.dart @@ -40,7 +40,7 @@ class _AccountProfilePageState extends State { List _pinnedPosts = List.empty(); int _totalUpvote = 0, _totalDownvote = 0; - Future getUserinfo() async { + Future _getUserinfo() async { setState(() => _isBusy = true); var client = ServiceFinder.configureClient('auth'); @@ -114,7 +114,7 @@ class _AccountProfilePageState extends State { } }); - getUserinfo(); + _getUserinfo(); getPinnedPosts(); } @@ -189,8 +189,11 @@ class _AccountProfilePageState extends State { : () async { setState(() => _isMakingFriend = true); try { - await _relationshipProvider.makeFriend(widget.name); - context.showSnackbar('accountFriendRequestSent'.tr); + await _relationshipProvider + .makeFriend(widget.name); + context.showSnackbar( + 'accountFriendRequestSent'.tr, + ); } catch (e) { context.showErrorDialog(e); } finally { @@ -274,6 +277,8 @@ class _AccountProfilePageState extends State { color: Theme.of(context).colorScheme.surfaceContainerLow, child: PostListEntryWidget( + backgroundColor: + Theme.of(context).colorScheme.surfaceContainerLow, item: element, isClickable: true, isNestedClickable: true,