From 9da5bfee526a9764366e99b3cfe4fde37b81ad86 Mon Sep 17 00:00:00 2001 From: Tamara Slosarek Date: Wed, 28 Feb 2024 18:27:24 +0100 Subject: [PATCH] feat(app): add disclaimer to PDF --- app/lib/common/utilities/pdf_utils.dart | 9 ++++++++- app/lib/l10n/app_en.arb | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/lib/common/utilities/pdf_utils.dart b/app/lib/common/utilities/pdf_utils.dart index 796cc50b..2011f9da 100644 --- a/app/lib/common/utilities/pdf_utils.dart +++ b/app/lib/common/utilities/pdf_utils.dart @@ -96,6 +96,14 @@ List _buildHeader(Drug drug, BuildContext buildContext) { textAlign: pw.TextAlign.center, ), ), + _buildTextSpacer(), + _buildTextSpacer(), + _PdfSegment( + child: pw.Text( + buildContext.l10n.pdf_disclaimer, + style: pw.TextStyle(fontStyle: FontStyle.italic), + ), + ), ]; } @@ -301,7 +309,6 @@ List _buildExternalGuidelinePart( ..._buildGuidelinePart(guideline, buildContext) ] ), - _buildTextDivider(), ]; } diff --git a/app/lib/l10n/app_en.arb b/app/lib/l10n/app_en.arb index 6545b18e..662210df 100644 --- a/app/lib/l10n/app_en.arb +++ b/app/lib/l10n/app_en.arb @@ -279,6 +279,8 @@ "gene_page_further_inhibitor_drugs": "Your results for this gene can also be influenced by taking any of the following drugs:", "gene_page_activity_score": "Activity score", + + "pdf_disclaimer": "Disclaimer: The information contained in this PDF document is intended solely for use by trained health care professionals. It is provided for informational purposes only and should not be considered medical advice. The content may include technical terminology and clinical data that are intended for professional interpretation and application. Recipients are advised to exercise professional judgment and discretion when utilizing the information contained herein. If you are not a trained health care professional, please consult with a qualified medical practitioner or specialist before interpreting or applying the information provided in this document.", "pdf_pgx_report": "PGx Report", "pdf_heading_user_data": "User data", "pdf_heading_clinical_guidelines": "Clinical guideline(s)",