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,