ui improvements

dev_sikander
Sikander Saleem 3 weeks ago
parent 9c7cfde5f4
commit b9350afead

@ -148,20 +148,18 @@ class FeedbackPage extends StatelessWidget {
),
child: Padding(
padding: EdgeInsets.all(16.h),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
children: [
Utils.buildSvgWithAssets(icon: AppAssets.ask_doctor_icon, width: 24.w, height: 24.h, iconColor: AppColors.greyTextColor),
SizedBox(width: 12.w),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
LocaleKeys.feedbackType.tr().toText16(color: AppColors.textColor, weight: FontWeight.w500),
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
children: [
Utils.buildSvgWithAssets(icon: AppAssets.ask_doctor_icon, width: 24.w, height: 24.h, iconColor: AppColors.greyTextColor),
SizedBox(width: 12.w),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
LocaleKeys.feedbackType.tr().toText16(color: AppColors.textColor, weight: FontWeight.w500),
(getIt.get<AppState>().isArabic() ? contactUsViewModel.selectedFeedbackType.nameAR : contactUsViewModel.selectedFeedbackType.nameEN)
.toText14(color: AppColors.greyTextColor, weight: FontWeight.w500),
],

@ -555,6 +555,7 @@ class _LandingPageState extends State<LandingPage> {
scrollDirection: Axis.horizontal,
itemCount: LandingPageData.getLoggedInServiceCardsList.length,
shrinkWrap: true,
controller: _horizontalScrollController,
padding: EdgeInsets.only(left: 16.h, right: 16.h, top: 16.h, bottom: 12.h),
itemBuilder: (context, index) {
return AnimationConfiguration.staggeredList(
@ -608,6 +609,7 @@ class _LandingPageState extends State<LandingPage> {
scrollDirection: Axis.horizontal,
itemCount: LandingPageData.getNotLoggedInServiceCardsList.length,
shrinkWrap: true,
controller: _horizontalScrollController,
padding: EdgeInsets.only(left: 16.h, right: 16.h, top: 16.h, bottom: 12.h),
// padding: EdgeInsets.zero,
itemBuilder: (context, index) {

@ -55,6 +55,7 @@ class LargeServiceCard extends StatelessWidget {
right: 0.0,
child: Container(
height: 180.h,
padding: EdgeInsets.only(bottom: 16.h, top: 16.h),
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: AppColors.whiteColor,
customBorder: BorderRadius.only(
@ -69,7 +70,7 @@ class LargeServiceCard extends StatelessWidget {
children: [
Container(
height: 48.h,
width: 48.w,
width: 48.h,
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: serviceCardData.backgroundColor,
borderRadius: 12.r,
@ -95,7 +96,7 @@ class LargeServiceCard extends StatelessWidget {
),
),
],
).paddingSymmetrical(12.w, 24.h),
).paddingSymmetrical(16.w, 0.h).expanded,
CustomButton(
text: serviceCardData.isBold ? LocaleKeys.visitPharmacyOnline.tr(context: context) : LocaleKeys.bookNow.tr(context: context),
onPressed: () {
@ -206,7 +207,7 @@ class FadedLargeServiceCard extends StatelessWidget {
children: [
Container(
height: 32.h,
width: 32.w,
width: 32.h,
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: serviceCardData.backgroundColor,
borderRadius: 30.r,

@ -53,8 +53,8 @@ class SmallServiceCard extends StatelessWidget {
Widget build(BuildContext context) {
return Container(
height: 92.h,
width: 92.w,
padding: EdgeInsets.all(6.0),
width: 92.h,
padding: EdgeInsets.all(4.0),
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: backgroundColor,
borderRadius: 16,
@ -64,8 +64,13 @@ class SmallServiceCard extends StatelessWidget {
children: [
Utils.buildSvgWithAssets(icon: icon, iconColor: iconColor, width: 32.h, height: 32.h),
SizedBox(height: 6.h),
title.tr(context: context).toText12(color: textColor, fontWeight: FontWeight.w500, isCenter: true),
subtitle.tr(context: context).toText12(color: textColor, fontWeight: FontWeight.w500, isCenter: true),
if (isFoldable || isTablet) ...[
title.tr(context: context).toText11(color: textColor, weight: FontWeight.w500, isCenter: true, letterSpacing: -0.2),
subtitle.tr(context: context).toText11(color: textColor, weight: FontWeight.w500, isCenter: true, letterSpacing: -0.2),
] else ...[
title.tr(context: context).toText12(color: textColor, fontWeight: FontWeight.w500, isCenter: true, letterSpacing: -0.2),
subtitle.tr(context: context).toText12(color: textColor, fontWeight: FontWeight.w500, isCenter: true, letterSpacing: -0.2),
]
],
),
).onPress(() {

@ -125,7 +125,7 @@ class TextInputWidget extends StatelessWidget {
children: [
Container(
padding: padding,
height: isMultiline ? null : 64.h,
// height: isMultiline ? null : 64.h,
alignment: Alignment.center,
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: Colors.white,

Loading…
Cancel
Save