From 2f5d90ac8dcdf282c85382b553e45b20459f9e44 Mon Sep 17 00:00:00 2001 From: Tamara Slosarek Date: Tue, 27 Feb 2024 11:40:54 +0100 Subject: [PATCH] feat(app): add page despcription to settings drug selection and increase padding --- app/lib/drug_selection/pages/drug_selection.dart | 10 ++++++++-- app/lib/l10n/app_en.arb | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/lib/drug_selection/pages/drug_selection.dart b/app/lib/drug_selection/pages/drug_selection.dart index 38bee817..5dc7f1e0 100644 --- a/app/lib/drug_selection/pages/drug_selection.dart +++ b/app/lib/drug_selection/pages/drug_selection.dart @@ -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), diff --git a/app/lib/l10n/app_en.arb b/app/lib/l10n/app_en.arb index b3aa83bf..ffbc7af5 100644 --- a/app/lib/l10n/app_en.arb +++ b/app/lib/l10n/app_en.arb @@ -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",