Skip to content

Commit

Permalink
feat(app): add page despcription to settings drug selection and incre…
Browse files Browse the repository at this point in the history
…ase padding
  • Loading branch information
tamslo committed Feb 27, 2024
1 parent 63b93b9 commit 2f5d90a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/lib/drug_selection/pages/drug_selection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ class DrugSelectionPage extends HookWidget {
return unscrollablePageScaffold(
title: context.l10n.drug_selection_header,
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (concludesOnboarding) PageDescription.fromText(
context.l10n.drug_selection_onboarding_description,
Padding(
padding: EdgeInsets.symmetric(vertical: PharMeTheme.smallSpace),
child: PageDescription.fromText(
concludesOnboarding
? context.l10n.drug_selection_onboarding_description
: context.l10n.drug_selection_settings_description,
),
),
Expanded(child: _buildDrugList(context, state)),
if (concludesOnboarding) _buildButton(context, state),
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 @@ -33,6 +33,7 @@

"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_settings_description": "Review your currently taken drugs below.",
"drug_selection_no_drugs_loaded": "No drugs loaded",
"drug_selection_subheader_active_drugs": "Selected drugs",
"drug_selection_subheader_all_drugs": "All drugs",
Expand Down

0 comments on commit 2f5d90a

Please sign in to comment.