email added to profile view adnd custom text field changes

This commit is contained in:
2024-08-14 15:40:06 +05:30
parent cd83375b98
commit 17c100a035
5 changed files with 141 additions and 120 deletions

View File

@@ -33,31 +33,31 @@ class _ClientProfileScreenState extends State<ClientProfileScreen> {
screenKey: controller.screenKey,
onScreenTap: controller.removeFocus,
showAppBar: false,
appBar: CustomAppBar(
leadingButton: Container(),
showBoxShadow: false,
titleWidget: Row(
children: [
InkWell(
onTap: () => controller.backButtonPressed(context),
child: CustomImageWidget(
imagePath: AssetsManager.kBackIcon,
height: 11.53.h,
width: 8.66.w,
),
),
const SizedBox(
width: 15,
),
CustomTextWidget(
text: 'Client: ${controller.serviceUser()?.displayName ?? ""}',
isExpanded: false,
fontSize: 16.sp,
fontWeight: FontWeight.w700,
fontColor: CustomAppColors.kDarkBlueTextColor),
],
),
),
// appBar: CustomAppBar(
// leadingButton: Container(),
// showBoxShadow: false,
// titleWidget: Row(
// children: [
// InkWell(
// onTap: () => controller.backButtonPressed(context),
// child: CustomImageWidget(
// imagePath: AssetsManager.kBackIcon,
// height: 11.53.h,
// width: 8.66.w,
// ),
// ),
// const SizedBox(
// width: 15,
// ),
// CustomTextWidget(
// text: 'Client: ${controller.serviceUser()?.displayName ?? ""}',
// isExpanded: false,
// fontSize: 16.sp,
// fontWeight: FontWeight.w700,
// fontColor: CustomAppColors.kDarkBlueTextColor),
// ],
// ),
// ),
body: Obx(() {
if (controller.serviceUser() == null) {
return FrequentFunctions.centerText(text: "User detail not found");
@@ -84,6 +84,11 @@ class _ClientProfileScreenState extends State<ClientProfileScreen> {
text: detail.displayName,
fontSize: 14.sp,
fontWeight: FontWeight.w600),
CustomTextWidget(
text: detail.email ?? "",
fontSize: 12.sp,
fontColor: Colors.grey,
fontWeight: FontWeight.w400),
16.verticalSpace,
BuildDetailRow(
title: 'Contact Number',