diff --git a/lib/constants/app_constants.dart b/lib/constants/app_constants.dart index 1e46751271b25eaa6376a1b96aeb2eaed0b17fc7..9c959329522222eed0da8bfae5f8d8187217d18d 100644 --- a/lib/constants/app_constants.dart +++ b/lib/constants/app_constants.dart @@ -59,3 +59,8 @@ class Inspector { static const String leadInspector = 'lead_inspector'; static const String assistantInspector = 'assistant_inspector'; } + +class AssessmentSummary { + static const String inspectionSummary = "Inspection Summary"; + static const String assessmentSummary = "Assessment Summary"; +} diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index c0379f06a4b8ac7493a88d788e1fff5c03194ec2..be80fc689d7c9aed1b34fe256e194b1529c86c97 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -50,7 +50,7 @@ "inspetionCompletedOn": "Assessment completed on", "inspectionSummary": "Assessment Summary", "leadInspector": "Lead assessor", - "assistingInspectors": "Assisting assessors", + "assistingInspectors": "Assisting assessor", "iDisagree": "I disagree", "iConsent": "I consent", "acceptTermsAndConditions": "Please accept terms and conditions", diff --git a/lib/pages/inspection_summary.dart b/lib/pages/inspection_summary.dart index 3ef74b95d3d1ccaa97985bd4d98e06a86fc81540..ae73853f1bc889e3056094922f9848b9f1a3a741 100644 --- a/lib/pages/inspection_summary.dart +++ b/lib/pages/inspection_summary.dart @@ -207,7 +207,10 @@ class _InspectionSummaryPageState extends State<InspectionSummaryPage> { Container( margin: const EdgeInsets.fromLTRB(20, 30, 20, 15), child: Text( - _summaryField['values'][0]['heading'] ?? '', + _summaryField['values'][0]['heading'] == + AssessmentSummary.inspectionSummary + ? AssessmentSummary.assessmentSummary + : _summaryField['values'][0]['heading'] ?? '', style: GoogleFonts.lato( color: AppColors.black87, fontWeight: FontWeight.w700, @@ -244,7 +247,7 @@ class _InspectionSummaryPageState extends State<InspectionSummaryPage> { ? Container( margin: const EdgeInsets.fromLTRB(20, 10, 20, 15), child: Text( - 'Lead inspector', + 'Lead assessor', style: GoogleFonts.lato( color: AppColors.black87, fontWeight: FontWeight.w700, @@ -263,7 +266,7 @@ class _InspectionSummaryPageState extends State<InspectionSummaryPage> { Container( margin: const EdgeInsets.fromLTRB(20, 10, 20, 15), child: Text( - 'Assisting inspectors', + 'Assisting assessor', style: GoogleFonts.lato( color: AppColors.black87, fontWeight: FontWeight.w700,