From 4b52862ba0dd9678ec6dc8e3d4aa179351a80cae Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 13 Oct 2025 11:53:25 +0300 Subject: [PATCH] updates --- lib/core/dependencies.dart | 8 ++++++++ .../my_appointments/appointment_via_region_viewmodel.dart | 2 -- lib/widgets/input_widget.dart | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/core/dependencies.dart b/lib/core/dependencies.dart index 5a510d1..a82a9ad 100644 --- a/lib/core/dependencies.dart +++ b/lib/core/dependencies.dart @@ -184,6 +184,14 @@ class AppDependencies { () => DoctorFilterViewModel(), ); + getIt.registerLazySingleton( + () => + AppointmentViaRegionViewmodel( + navigationService: getIt(), + appState: getIt(), + ), + ); + getIt.registerLazySingleton( () => EmergencyServicesViewModel( locationUtils: getIt(), diff --git a/lib/features/my_appointments/appointment_via_region_viewmodel.dart b/lib/features/my_appointments/appointment_via_region_viewmodel.dart index 9a3925d..6c6354a 100644 --- a/lib/features/my_appointments/appointment_via_region_viewmodel.dart +++ b/lib/features/my_appointments/appointment_via_region_viewmodel.dart @@ -112,8 +112,6 @@ class AppointmentViaRegionViewmodel extends ChangeNotifier { } if (clinicId == 253) { { - - navigationService.push( CustomPageRoute( page: LaserAppointment(), diff --git a/lib/widgets/input_widget.dart b/lib/widgets/input_widget.dart index dae704b..9377c7e 100644 --- a/lib/widgets/input_widget.dart +++ b/lib/widgets/input_widget.dart @@ -118,7 +118,7 @@ class TextInputWidget extends StatelessWidget { alignment: Alignment.center, decoration: RoundedRectangleBorder().toSmoothCornerDecoration( color: Colors.white, - borderRadius: isAllowRadius ? 12 : null, + borderRadius: isAllowRadius ? 20.h : null, side: isBorderAllowed ? BorderSide(color: hasError ? errorColor : const Color(0xffefefef), width: 1) : null, ), child: Row( @@ -182,7 +182,7 @@ class TextInputWidget extends StatelessWidget { margin: EdgeInsets.only(right: 10.h), padding: EdgeInsets.all(8.h), decoration: RoundedRectangleBorder().toSmoothCornerDecoration( - borderRadius: 10.h, + borderRadius: 12.h, color: AppColors.greyColor, ), child: Utils.buildSvgWithAssets(icon: leadingIcon!)); @@ -257,7 +257,7 @@ class TextInputWidget extends StatelessWidget { decoration: InputDecoration( isDense: true, hintText: hintText, - hintStyle: TextStyle(fontSize: 14.fSize, height: 21 / 16, fontWeight: FontWeight.w500, color: Color(0xff898A8D), letterSpacing: -0.75), + hintStyle: TextStyle(fontSize: 14.fSize, height: 21 / 16, fontWeight: FontWeight.w500, color: AppColors.textColor, letterSpacing: -0.75), prefixIconConstraints: BoxConstraints(minWidth: 30.h), prefixIcon: prefix == null ? null : "+${prefix!}".toText14(letterSpacing: -1, color: AppColors.textColor, weight: FontWeight.w500), contentPadding: EdgeInsets.zero,