From 728d8676f7fc5ade19ffc71e57b4a9fd4c4edc9d Mon Sep 17 00:00:00 2001 From: Shubhamshirva Date: Mon, 29 Jul 2024 19:07:00 +0530 Subject: [PATCH] some fixes in edit page --- .../EditProfile/View/EditProfile.dart | 27 +++++++++++-------- .../ProfileTab/Settings/DeleteAccount.dart | 3 ++- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/lib/Feed Module/Main_Screens/ProfileTab/EditProfile/View/EditProfile.dart b/lib/Feed Module/Main_Screens/ProfileTab/EditProfile/View/EditProfile.dart index 6fcffce..434ac91 100644 --- a/lib/Feed Module/Main_Screens/ProfileTab/EditProfile/View/EditProfile.dart +++ b/lib/Feed Module/Main_Screens/ProfileTab/EditProfile/View/EditProfile.dart @@ -124,6 +124,9 @@ class _EditProfileState extends State { FormData? updata; var imageFile; + selectedinterestid.isEmpty + ? getCatIdFromName(listofUserInterests) + : selectedinterestid; String abilitiesIds = selectedinterestid.toString(); print("Interests String: $abilitiesIds"); @@ -354,7 +357,7 @@ class _EditProfileState extends State { sizedBoxHeight(16.h), CustomTextFormField( textEditingController: fullNameController, - leadingIcon: SizedBox( + leadingIcon: Container( width: 18.w, height: 17.h, child: Center( @@ -365,7 +368,7 @@ class _EditProfileState extends State { ), ), ), - hintText: "Enter your full name", + hintText: "Edward Hackett", ), sizedBoxHeight(20.h), text16400white("User name"), @@ -383,7 +386,7 @@ class _EditProfileState extends State { ), ), ), - hintText: "Enter your user name", + hintText: "edward_01", ), sizedBoxHeight(20.h), text16400white("Date of birth"), @@ -404,7 +407,7 @@ class _EditProfileState extends State { ), ), ), - hintText: "Select your date of birth", + hintText: "12-04-2024", textEditingController: dateController, ), ), @@ -456,7 +459,8 @@ class _EditProfileState extends State { ), ), ), - hintText: "Enter your location", + hintText: + "Elm street london, United Kingdom", ), sizedBoxHeight(20.h), Row( @@ -494,7 +498,8 @@ class _EditProfileState extends State { sizedBoxHeight(16.h), CustomTextFormField2( textEditingController: aboutController, - hintText: "Tell us about yourself", + hintText: + "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. Lorem Ipsum has been the industry's standard", maxlines: 3, ), // sizedBoxHeight(20.h), @@ -503,7 +508,7 @@ class _EditProfileState extends State { sizedBoxHeight(16.h), CustomTextFormField( textEditingController: positionController, - hintText: "Enter your position", + hintText: "Lorem Ipsum", ), sizedBoxHeight(20.h), text16400white("Training Scores"), @@ -511,28 +516,28 @@ class _EditProfileState extends State { CustomTextFormField( textEditingController: trainingScoresController, - hintText: "Enter your training scores", + hintText: "50", ), sizedBoxHeight(20.h), text16400white("Height"), sizedBoxHeight(16.h), CustomTextFormField( textEditingController: heightController, - hintText: "Enter your height", + hintText: "6 feet", ), sizedBoxHeight(20.h), text16400white("Weight"), sizedBoxHeight(16.h), CustomTextFormField( textEditingController: weightController, - hintText: "Enter your weight", + hintText: "70kg", ), sizedBoxHeight(20.h), text16400white("Batting Average"), sizedBoxHeight(16.h), CustomTextFormField( textEditingController: battingAvgController, - hintText: "Enter your batting average", + hintText: "372", ), sizedBoxHeight(20.h), sizedBoxHeight(60.h), diff --git a/lib/Feed Module/Main_Screens/ProfileTab/Settings/DeleteAccount.dart b/lib/Feed Module/Main_Screens/ProfileTab/Settings/DeleteAccount.dart index 7d453cf..9bfa5ea 100644 --- a/lib/Feed Module/Main_Screens/ProfileTab/Settings/DeleteAccount.dart +++ b/lib/Feed Module/Main_Screens/ProfileTab/Settings/DeleteAccount.dart @@ -118,7 +118,8 @@ class _DeleteAccountState extends State { CommonBtn( text: "I don’t want to delete", onTap: () { - Get.toNamed(RouteName.mainscreen); + // Get.toNamed(RouteName.mainscreen); + Get.back(); }, ), sizedBoxHeight(18.h),