Skip to content

Commit

Permalink
feat(app): add button to edit current medications
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Nov 28, 2024
1 parent 57314c0 commit aadcc58
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions app/lib/common/widgets/drug_list/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,25 @@ class DrugList extends StatelessWidget {
);
final drugLists = [
if (activeDrugsList != null) ...[
SubheaderDivider(
text: context.l10n.drug_list_subheader_active_drugs,
ListTile(
key: Key('header-active'),
useLine: false,
title: SubheaderDivider(
text: context.l10n.drug_list_subheader_active_drugs,
useLine: false,
),
trailing: drugActivityChangeable
? null
: IconButton(
onPressed: () => context.router.push(
DrugSelectionRoute(concludesOnboarding: false)
),
icon: Icon(Icons.edit),
color: PharMeTheme.iconColor,
iconSize: 20,
visualDensity: VisualDensity.compact,
),
visualDensity: VisualDensity.compact,
contentPadding: EdgeInsets.zero,
),
...activeDrugsList,
],
Expand Down

0 comments on commit aadcc58

Please sign in to comment.