Merge pull request 'haroon_dev' (#363) from haroon_dev into master
Reviewed-on: https://34.17.182.140/Haroon6138/HMG_Patient_App_New/pulls/363pull/372/head
commit
1c717e3ef2
@ -0,0 +1,230 @@
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.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/size_utils.dart';
|
||||
import 'package:hmg_patient_app_new/theme/colors.dart';
|
||||
import 'package:hmg_patient_app_new/widgets/appbar/collapsing_list_view.dart';
|
||||
|
||||
import '../../../generated/locale_keys.g.dart';
|
||||
|
||||
class LiveCareTermsConditions extends StatelessWidget {
|
||||
const LiveCareTermsConditions({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final isArabic = getIt.get<AppState>().isArabic();
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: AppColors.scaffoldBgColor,
|
||||
body: Column(
|
||||
children: [
|
||||
Expanded(
|
||||
child: CollapsingListView(
|
||||
title: LocaleKeys.livecare.tr(context: context),
|
||||
child: SingleChildScrollView(
|
||||
padding: EdgeInsets.symmetric(horizontal: 24.w, vertical: 16.h),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsIntroHeading.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions1.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions2.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading2.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions3.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions3a.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions3b.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions3c.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions3d.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions4.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions5.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions6.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading3.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions7.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions8.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions9.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions10.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions11.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions12.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions13.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading4.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions14.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions15.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions16.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading5.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions17.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions18.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions19.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions19a.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions19b.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions19c.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions19d.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions19e.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions20.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading6.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions21.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions22.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions23.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading7.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions24.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions25.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions26.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions27.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions28.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions29.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions30.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading8.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions31.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading9.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions32.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions33.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions34.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions35.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading10.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions36.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading11.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions37.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions38.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading12.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions39.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions40.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions41.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading13.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions42.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading14.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions43.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions43a.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions43b.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions43c.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions43d.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions43e.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions43f.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions43g.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading15.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions44.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions45.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions46.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildHeading(context, LocaleKeys.liveCareTermsHeading16.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions47.tr(context: context), isArabic),
|
||||
SizedBox(height: 12.h),
|
||||
_buildContent(context, LocaleKeys.liveCareTermsConditions48.tr(context: context), isArabic),
|
||||
SizedBox(height: 24.h),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/// Helper method to build heading text with consistent styling
|
||||
Widget _buildHeading(BuildContext context, String text, bool isArabic) {
|
||||
return Text(
|
||||
text,
|
||||
style: TextStyle(
|
||||
fontSize: 20.f,
|
||||
fontFamily: isArabic ? 'CairoArabic' : 'Poppins',
|
||||
fontWeight: FontWeight.w700,
|
||||
color: AppColors.textColor,
|
||||
letterSpacing: -0.5,
|
||||
height: 1.4,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/// Helper method to build content text with consistent styling
|
||||
Widget _buildContent(BuildContext context, String text, bool isArabic) {
|
||||
return Text(
|
||||
text,
|
||||
style: TextStyle(
|
||||
fontSize: 16.f,
|
||||
fontFamily: isArabic ? 'CairoArabic' : 'Poppins',
|
||||
color: AppColors.textColor,
|
||||
letterSpacing: -0.3,
|
||||
height: 1.5,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue