From c8333ca5aff416442166be31029699f624f84980 Mon Sep 17 00:00:00 2001 From: Tamara Slosarek Date: Thu, 30 Nov 2023 14:30:03 +0100 Subject: [PATCH] feat(#671): give more information on report screen --- app/lib/common/widgets/page_scaffold.dart | 1 + app/lib/l10n/app_en.arb | 1 + app/lib/report/pages/report.dart | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/app/lib/common/widgets/page_scaffold.dart b/app/lib/common/widgets/page_scaffold.dart index 8ea697a1..3545bef8 100644 --- a/app/lib/common/widgets/page_scaffold.dart +++ b/app/lib/common/widgets/page_scaffold.dart @@ -4,6 +4,7 @@ Text buildTitle(String text) { return Text(text, style: PharMeTheme.textTheme.headlineLarge); } +// Hint: For multiline text use RichText widget AppBar? buildBarBottom(Widget? barBottom) { return barBottom == null ? null diff --git a/app/lib/l10n/app_en.arb b/app/lib/l10n/app_en.arb index 8ba17766..06f89558 100644 --- a/app/lib/l10n/app_en.arb +++ b/app/lib/l10n/app_en.arb @@ -190,6 +190,7 @@ }, "drugs_page_tooltip_guideline": "Clinical guidelines help understand how drug therapy can be optimized for one's genetics (DNA). They put specific genes in relation with a drug.", + "report_content_explanation": "Explore your results for genes that have an influence on drugs. Tap on a gene name to see details about your result and a list of affected drugs.", "report_page_indicator_explanation": "Phenotypes followed by an {indicatorName} ({indicator}) might be influenced by drugs you are currently taking", "@report_page_indicator_explanation": { "description": "Explanation of drug-drug interaction indicators", diff --git a/app/lib/report/pages/report.dart b/app/lib/report/pages/report.dart index 8213a0c5..6900cd99 100644 --- a/app/lib/report/pages/report.dart +++ b/app/lib/report/pages/report.dart @@ -28,6 +28,12 @@ class ReportPage extends StatelessWidget { ); return unscrollablePageScaffold( title: context.l10n.tab_report, + barBottom: RichText( + text: TextSpan( + text: context.l10n.report_content_explanation, + style: PharMeTheme.textTheme.bodyLarge, + ), + ), body: Column( children: [ scrollList(