mod: 未登录不显示消息入口
This commit is contained in:
@ -139,10 +139,12 @@ class CustomAppBar extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
const Expanded(child: SearchPage()),
|
const Expanded(child: SearchPage()),
|
||||||
|
if (ctr!.userLogin.value) ...[
|
||||||
const SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => Get.toNamed('/whisper'),
|
onPressed: () => Get.toNamed('/whisper'),
|
||||||
icon: const Icon(Icons.notifications_none)),
|
icon: const Icon(Icons.notifications_none))
|
||||||
|
],
|
||||||
const SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
Obx(
|
Obx(
|
||||||
() => ctr!.userLogin.value
|
() => ctr!.userLogin.value
|
||||||
|
|||||||
Reference in New Issue
Block a user