mod: 未登录不显示消息入口

This commit is contained in:
guozhigq
2023-12-17 15:16:34 +08:00
parent a6ab72cadd
commit 8ef3c1d9bb

View File

@ -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