From da3c087ade71918bc413315fb2b1c05a130d6adb Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Tue, 7 Jan 2025 11:41:35 +0800 Subject: [PATCH] fix: #115 Signed-off-by: bggRGjQaUbCoE --- lib/pages/home/view.dart | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/lib/pages/home/view.dart b/lib/pages/home/view.dart index feca48140..e2c3c70a7 100644 --- a/lib/pages/home/view.dart +++ b/lib/pages/home/view.dart @@ -234,6 +234,7 @@ class UserAndSearchVertical extends StatelessWidget { child: Obx( () => ctr.userLogin.value ? Stack( + clipBehavior: Clip.none, children: [ NetworkImgLayer( type: 'avatar', @@ -255,7 +256,31 @@ class UserAndSearchVertical extends StatelessWidget { ), ), ), - ) + ), + Positioned( + right: -6, + bottom: -6, + child: Obx(() => MineController.anonymity.value + ? IgnorePointer( + child: Container( + padding: const EdgeInsets.all(2), + decoration: BoxDecoration( + color: Theme.of(context) + .colorScheme + .secondaryContainer, + shape: BoxShape.circle, + ), + child: Icon( + size: 16, + MdiIcons.incognito, + color: Theme.of(context) + .colorScheme + .onSecondaryContainer, + ), + ), + ) + : const SizedBox.shrink()), + ), ], ) : DefaultUser(onPressed: () => ctr.showUserInfoDialog(context)),