Skip to content

Commit

Permalink
feat(#691): adapt 'currently taken drugs' wording and make automatica…
Browse files Browse the repository at this point in the history
…llyImplyLeading configurable
  • Loading branch information
tamslo committed Feb 26, 2024
1 parent 883a831 commit 43f8fef
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ List<Widget> buildDrugCheckboxList(
SubheaderDivider(
text: context.l10n.drug_selection_subheader_active_drugs,
key: Key('header-active'),
useLine: false,
),
...activeDrugsList,
SubheaderDivider(
text: context.l10n.drug_selection_subheader_all_drugs,
key: Key('header-all'),
useLine: false,
),
...allDrugsList,
];
Expand Down
3 changes: 2 additions & 1 deletion app/lib/common/widgets/page_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Scaffold unscrollablePageScaffold({
String? barBottom,
List<Widget>? actions,
Widget? drawer,
bool automaticallyImplyLeading = true,
Key? key,
}) {
final appBar = title == null
Expand All @@ -80,7 +81,7 @@ Scaffold unscrollablePageScaffold({
foregroundColor: PharMeTheme.appBarTheme.foregroundColor,
elevation: PharMeTheme.appBarTheme.elevation,
leadingWidth: PharMeTheme.appBarTheme.leadingWidth,
automaticallyImplyLeading: false,
automaticallyImplyLeading: automaticallyImplyLeading,
centerTitle: PharMeTheme.appBarTheme.centerTitle,
title: buildTitle(title),
actions: actions,
Expand Down
6 changes: 3 additions & 3 deletions app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"genetic_information_text_part_2": ", a service of the National Library of Medicine.",
"genetic_information_source": "MedlinePlus",

"drug_selection_header": "Select active drugs",
"drug_selection_header": "Currently taken drugs",
"drug_selection_onboarding_description": "Please update which drugs you are currently taking below. You can always change the status for a drug later on a drug page or in the settings.",
"drug_selection_no_drugs_loaded": "No drugs loaded",
"drug_selection_subheader_active_drugs": "Active drugs",
"drug_selection_subheader_active_drugs": "Selected drugs",
"drug_selection_subheader_all_drugs": "All drugs",
"drug_selection_no_active_drugs": "No drugs selected",

Expand Down Expand Up @@ -317,7 +317,7 @@
}
}
},
"pdf_activity_score_overwrite": "{originalScore} adjusted based on active medications, see phenotype",
"pdf_activity_score_overwrite": "{originalScore} adjusted based on currently taken medications, see phenotype",
"@pdf_activity_score_overwrite": {
"placeholders": {
"originalScore": {
Expand Down
1 change: 1 addition & 0 deletions app/lib/search/pages/search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class SearchPage extends HookWidget {
activeDrugs,
useDrugClass: useDrugClass,
),
automaticallyImplyLeading: false, // do not show leading "menu" icon
),
),
);
Expand Down

0 comments on commit 43f8fef

Please sign in to comment.