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( child: Row(
children: [ children: [
const Expanded(child: SearchPage()), const Expanded(child: SearchPage()),
const SizedBox(width: 6), if (ctr!.userLogin.value) ...[
IconButton( const SizedBox(width: 6),
onPressed: () => Get.toNamed('/whisper'), IconButton(
icon: const Icon(Icons.notifications_none)), onPressed: () => Get.toNamed('/whisper'),
icon: const Icon(Icons.notifications_none))
],
const SizedBox(width: 6), const SizedBox(width: 6),
Obx( Obx(
() => ctr!.userLogin.value () => ctr!.userLogin.value