From 8f91cbae2502f2b550b52334745bb0dc9514cfb0 Mon Sep 17 00:00:00 2001 From: Sachin S P <52343650+SachinPremkumar@users.noreply.github.com> Date: Wed, 28 Aug 2024 09:03:56 +0530 Subject: [PATCH] fixed ui spec issue, multiple dropdown display and removed unfunctional button (#435) Signed-off-by: Sachin S P Co-authored-by: Sachin S P --- lib/ui/onboard/onboarding_page.dart | 60 +++++++++---------- .../widgets/dynamic_dropdown_control.dart | 4 +- .../widgets/new_process_screen_content.dart | 4 ++ 3 files changed, 36 insertions(+), 32 deletions(-) diff --git a/lib/ui/onboard/onboarding_page.dart b/lib/ui/onboard/onboarding_page.dart index e3c06d8c..2cb79003 100644 --- a/lib/ui/onboard/onboarding_page.dart +++ b/lib/ui/onboard/onboarding_page.dart @@ -30,36 +30,36 @@ class OnboardingPage extends StatelessWidget { body: Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ - Container( - alignment: Alignment.centerRight, - padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 20.h), - child: InkWell( - onTap: () {}, - child: Container( - height: isMobileSize ? 46.h : 62.h, - width: 129.w, - decoration: BoxDecoration( - color: Colors.transparent, - border: Border.all( - color: appWhite, - ), - borderRadius: const BorderRadius.all( - Radius.circular(5), - ), - ), - child: Center( - child: Text( - appLocalizations.help, - style: TextStyle( - fontSize: isMobileSize ? 16 : 22, - fontWeight: FontWeight.bold, - color: appWhite, - ), - ), - ), - ), - ), - ), + // Container( + // alignment: Alignment.centerRight, + // padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 20.h), + // child: InkWell( + // onTap: () {}, + // child: Container( + // height: isMobileSize ? 46.h : 62.h, + // width: 129.w, + // decoration: BoxDecoration( + // color: Colors.transparent, + // border: Border.all( + // color: appWhite, + // ), + // borderRadius: const BorderRadius.all( + // Radius.circular(5), + // ), + // ), + // child: Center( + // child: Text( + // appLocalizations.help, + // style: TextStyle( + // fontSize: isMobileSize ? 16 : 22, + // fontWeight: FontWeight.bold, + // color: appWhite, + // ), + // ), + // ), + // ), + // ), + // ), Expanded( child: Padding( padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 20.h), diff --git a/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart b/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart index 6d8db9b3..25021276 100644 --- a/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart +++ b/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart @@ -60,13 +60,13 @@ class _CustomDynamicDropDownState extends State { for (var item in temp) { if (item!.code == value.code) { registrationTaskProvider.addSimpleTypeDemographicField( - widget.field.id ?? "", item.name, code); + widget.field.id ?? "", value.code, code); } } } } else { registrationTaskProvider.addDemographicField( - widget.field.id ?? "", value.name); + widget.field.id ?? "", value.code); } } } diff --git a/lib/ui/process_ui/widgets/new_process_screen_content.dart b/lib/ui/process_ui/widgets/new_process_screen_content.dart index 2c67bf5c..66f65665 100644 --- a/lib/ui/process_ui/widgets/new_process_screen_content.dart +++ b/lib/ui/process_ui/widgets/new_process_screen_content.dart @@ -93,6 +93,10 @@ class _NewProcessScreenContentState extends State { if (e.subType == "gender" || e.subType == "residenceStatus") { return RadioButtonControl(field: e); } + //feature will implement + if (e.subType == "selectedHandles") { + return const SizedBox.shrink(); + } return Text("${e.controlType}"); case "textbox": return TextBoxControl(e: e, validation: regexPattern);