pull/212/head
haroon amjad 6 days ago
parent 21477f34dc
commit 1fa03fff5e

@ -1655,7 +1655,8 @@
"toHospitalSubtitle": "نقل من موقعك الحالي إلى المستشفى", "toHospitalSubtitle": "نقل من موقعك الحالي إلى المستشفى",
"fromHospitalSubtitle": "نقل من المستشفى إلى منزلك", "fromHospitalSubtitle": "نقل من المستشفى إلى منزلك",
"clinicSchedule": "جدول العيادة", "clinicSchedule": "جدول العيادة",
"doctorAddedToFavourite": "تمت إضافة الطبيب إلى قائمة المفضلة", "doctorAddedToFavourite": "تمت إضافة إلى قائمة المفضلة",
"doctorRemovedFromFavourite": "تمت إزالة الطبيب من قائمة الأطباء المفضلين", "doctorRemovedFromFavourite": "تمت إزالة من قائمة الأطباء المفضلين",
"addNewFavorite": "إضافة مفضلة جديدة" "addNewFavorite": "إضافة مفضلة جديدة",
"favourites": "المفضلة"
} }

@ -1647,7 +1647,8 @@
"toHospitalSubtitle": "Transfer from your current location to the hospital", "toHospitalSubtitle": "Transfer from your current location to the hospital",
"fromHospitalSubtitle": "Transfer from the hospital back to your home", "fromHospitalSubtitle": "Transfer from the hospital back to your home",
"clinicSchedule": "Clinic Schedule", "clinicSchedule": "Clinic Schedule",
"doctorAddedToFavourite": "Doctor added to favorites list", "doctorAddedToFavourite": "Added to favorites list",
"doctorRemovedFromFavourite": "Doctor removed from favorites list", "doctorRemovedFromFavourite": "Removed from favorites list",
"favourites": "Favourites",
"addNewFavorite": "Add new favourite" "addNewFavorite": "Add new favourite"
} }

@ -1650,5 +1650,6 @@ abstract class LocaleKeys {
static const doctorAddedToFavourite = 'doctorAddedToFavourite'; static const doctorAddedToFavourite = 'doctorAddedToFavourite';
static const doctorRemovedFromFavourite = 'doctorRemovedFromFavourite'; static const doctorRemovedFromFavourite = 'doctorRemovedFromFavourite';
static const addNewFavorite = 'addNewFavorite'; static const addNewFavorite = 'addNewFavorite';
static const favourites = 'favourites';
} }

@ -249,7 +249,7 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SizedBox(height: 24.h), SizedBox(height: 24.h),
LocaleKeys.favouriteDoctors.tr(context: context).toText18(isBold: true).paddingSymmetrical(24.w, 0.h), LocaleKeys.favouriteList.tr(context: context).toText18(isBold: true).paddingSymmetrical(24.w, 0.h),
SizedBox(height: 16.h), SizedBox(height: 16.h),
SizedBox( SizedBox(
height: 110.h, height: 110.h,
@ -340,7 +340,7 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SizedBox(height: 24.h), SizedBox(height: 24.h),
LocaleKeys.favouriteDoctors.tr(context: context).toText18(isBold: true).paddingSymmetrical(24.w, 0.h), LocaleKeys.favourites.tr(context: context).toText18(isBold: true).paddingSymmetrical(24.w, 0.h),
SizedBox(height: 16.h), SizedBox(height: 16.h),
Row( Row(
children: [ children: [

@ -1,6 +1,8 @@
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hmg_patient_app_new/core/app_assets.dart'; import 'package:hmg_patient_app_new/core/app_assets.dart';
import 'package:hmg_patient_app_new/core/app_state.dart';
import 'package:hmg_patient_app_new/core/dependencies.dart';
import 'package:hmg_patient_app_new/core/utils/date_util.dart'; import 'package:hmg_patient_app_new/core/utils/date_util.dart';
import 'package:hmg_patient_app_new/core/utils/size_utils.dart'; import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
import 'package:hmg_patient_app_new/core/utils/utils.dart'; import 'package:hmg_patient_app_new/core/utils/utils.dart';
@ -103,6 +105,12 @@ class DoctorCard extends StatelessWidget {
SizedBox( SizedBox(
child: (isLoading child: (isLoading
? "Consultant Cardiologist" ? "Consultant Cardiologist"
: getIt.get<AppState>().isArabic()
? doctorsListResponseModel.specialityN!.isNotEmpty
? (doctorsListResponseModel.specialityN!.first.length > 32
? '${doctorsListResponseModel.specialityN!.first.substring(0, 32)}...'
: doctorsListResponseModel.specialityN!.first)
: ""
: doctorsListResponseModel.speciality!.isNotEmpty : doctorsListResponseModel.speciality!.isNotEmpty
? (doctorsListResponseModel.speciality!.first.length > 32 ? (doctorsListResponseModel.speciality!.first.length > 32
? '${doctorsListResponseModel.speciality!.first.substring(0, 32)}...' ? '${doctorsListResponseModel.speciality!.first.substring(0, 32)}...'

@ -503,7 +503,7 @@ class _EmergencyServicesPageState extends State<EmergencyServicesPage> {
title: LocaleKeys.transportOptions.tr(), title: LocaleKeys.transportOptions.tr(),
context, context,
child: SizedBox( child: SizedBox(
height: 400.h, height: 500.h,
child: AmbulanceOptionSelectionBottomSheet(onTap: () { child: AmbulanceOptionSelectionBottomSheet(onTap: () {
Navigator.of(context).pop(); Navigator.of(context).pop();
openPickupDetailsBottomSheet(context); openPickupDetailsBottomSheet(context);

@ -76,6 +76,11 @@ class HabibWalletCard extends StatelessWidget {
// ], // ],
// ), // ),
SizedBox(height: 4.h), SizedBox(height: 4.h),
Row(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Consumer<HabibWalletViewModel>(builder: (context, habibWalletVM, child) { Consumer<HabibWalletViewModel>(builder: (context, habibWalletVM, child) {
return Row( return Row(
children: [ children: [
@ -96,11 +101,10 @@ class HabibWalletCard extends StatelessWidget {
); );
}), }),
Padding( Padding(
padding: EdgeInsets.symmetric(horizontal: 50.h), padding: EdgeInsets.symmetric(horizontal: 35.h),
child: Row( child: Row(
children: [ children: [
LocaleKeys.viewDetails.tr(context: context).toText12(color: AppColors.primaryRedColor), LocaleKeys.viewDetails.tr(context: context).toText12(color: AppColors.primaryRedColor, fontWeight: FontWeight.w500),
SizedBox(width: 2.h),
Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 10.h), Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 10.h),
], ],
).onPress(() { ).onPress(() {
@ -111,32 +115,41 @@ class HabibWalletCard extends StatelessWidget {
); );
}), }),
), ),
SizedBox(height: 16.h), ],
Row( ),
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
SizedBox( SizedBox(
width: 200.h, // width: 50.h,
child: Utils.getPaymentMethods(), child: Utils.getPaymentMethods(),
), ),
],
),
SizedBox(height: 16.h),
CustomButton( CustomButton(
height: 40.h, height: 40.h,
icon: AppAssets.recharge_icon, icon: AppAssets.recharge_icon,
iconColor: AppColors.infoColor,
iconSize: 24.h, iconSize: 24.h,
backgroundColor: AppColors.infoColor, backgroundColor: AppColors.infoColor.withAlpha(15),
textColor: Colors.white, textColor: AppColors.infoColor,
text: LocaleKeys.recharge.tr(context: context), text: LocaleKeys.recharge.tr(context: context),
borderWidth: 0.w, borderWidth: 0.w,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
borderColor: Colors.transparent, borderColor: AppColors.infoColor.withAlpha(15),
padding: EdgeInsets.fromLTRB(4, 0, 12, 0), padding: EdgeInsets.fromLTRB(4, 0, 12, 0),
fontSize: 14.f, fontSize: 14.f,
onPressed: () { onPressed: () {
Navigator.of(context).push(CustomPageRoute(page: RechargeWalletPage())); Navigator.of(context).push(CustomPageRoute(page: RechargeWalletPage()));
}, },
), ),
], // Row(
), // mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// SizedBox(
// width: 200.h,
// child: Utils.getPaymentMethods(),
// ),
// ],
// ),
], ],
), ),
), ),

@ -491,7 +491,7 @@ class _TriagePageState extends State<TriagePage> {
text: TextSpan( text: TextSpan(
text: "${probability.toStringAsFixed(1)}% ", text: "${probability.toStringAsFixed(1)}% ",
style: TextStyle( style: TextStyle(
fontFamily: isArabic ? 'GESSTwo' : 'Poppins', fontFamily: 'Poppins',
color: AppColors.primaryRedColor, color: AppColors.primaryRedColor,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 14.f, fontSize: 14.f,

Loading…
Cancel
Save