Skip to content

Commit

Permalink
feat(#671): give more information on report screen
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Nov 30, 2023
1 parent fd3f152 commit c8333ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/common/widgets/page_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions app/lib/report/pages/report.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c8333ca

Please sign in to comment.