Skip to content

Commit

Permalink
fix(#670): add keys to subheaders
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Dec 1, 2023
1 parent 413e50d commit 43e670a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ List<Widget> buildDrugCheckboxList(
keyPrefix: 'all',
);
return [
SubheaderDivider(context.l10n.drug_selection_subheader_active_drugs),
SubheaderDivider(
context.l10n.drug_selection_subheader_active_drugs,
key: Key('header-active'),
),
...activeDrugsList,
SubheaderDivider(context.l10n.drug_selection_subheader_all_drugs),
SubheaderDivider(
context.l10n.drug_selection_subheader_all_drugs,
key: Key('header-all'),
),
...allDrugsList,
];
}
Expand Down
2 changes: 0 additions & 2 deletions app/lib/common/widgets/scroll_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ Widget scrollList(List<Widget> body, {bool keepPosition = false}) {
childCount: body.length,
onItemKey: (index) => getItemKey(body[index]),
keepPosition: keepPosition,
// keepPositionOffset: 80,
// firstItemAlign: FirstItemAlign.end
)
)
)
Expand Down

0 comments on commit 43e670a

Please sign in to comment.