From 8ef3c1d9bbe179311ccf23d31c04e37c83e7d977 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sun, 17 Dec 2023 15:16:34 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E6=9C=AA=E7=99=BB=E5=BD=95=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=B6=88=E6=81=AF=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/home/view.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/pages/home/view.dart b/lib/pages/home/view.dart index e119cbcb..bcde246e 100644 --- a/lib/pages/home/view.dart +++ b/lib/pages/home/view.dart @@ -139,10 +139,12 @@ class CustomAppBar extends StatelessWidget implements PreferredSizeWidget { child: Row( children: [ const Expanded(child: SearchPage()), - const SizedBox(width: 6), - IconButton( - onPressed: () => Get.toNamed('/whisper'), - icon: const Icon(Icons.notifications_none)), + if (ctr!.userLogin.value) ...[ + const SizedBox(width: 6), + IconButton( + onPressed: () => Get.toNamed('/whisper'), + icon: const Icon(Icons.notifications_none)) + ], const SizedBox(width: 6), Obx( () => ctr!.userLogin.value