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