TF-474 Add Obx for user avatar on browser

This commit is contained in:
dab246
2022-05-06 18:28:16 +07:00
committed by Dat H. Pham
parent 0de0fe7723
commit 0932cf0185
@@ -166,7 +166,7 @@ class MailboxDashBoardView extends GetWidget<MailboxDashBoardController> with Ne
.build() .build()
: const SizedBox.shrink()), : const SizedBox.shrink()),
Obx(() => !controller.isSearchActive() ? const SizedBox(width: 16) : const SizedBox.shrink()), Obx(() => !controller.isSearchActive() ? const SizedBox(width: 16) : const SizedBox.shrink()),
(AvatarBuilder() Obx(() => (AvatarBuilder()
..text(controller.userProfile.value?.getAvatarText() ?? '') ..text(controller.userProfile.value?.getAvatarText() ?? '')
..backgroundColor(Colors.white) ..backgroundColor(Colors.white)
..textColor(Colors.black) ..textColor(Colors.black)
@@ -186,7 +186,7 @@ class MailboxDashBoardView extends GetWidget<MailboxDashBoardController> with Ne
color: AppColor.colorShadowBgContentEmail, color: AppColor.colorShadowBgContentEmail,
spreadRadius: 1, blurRadius: 1, offset: Offset(0, 0.5))]) spreadRadius: 1, blurRadius: 1, offset: Offset(0, 0.5))])
..size(48)) ..size(48))
.build(), .build()),
const SizedBox(width: 16) const SizedBox(width: 16)
]); ]);
} }