Skip to content

Commit

Permalink
feat(#706): show interaction indicator on selection page
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Sep 5, 2024
1 parent be9f27e commit c455385
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../../../module.dart';
import 'utils.dart';

List<Widget> buildDrugCheckboxList(
List<Widget> buildDrugSelectionList(
BuildContext context,
List<Drug> drugs,
{
Expand Down
2 changes: 1 addition & 1 deletion app/lib/common/widgets/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export 'direction_button.dart';
export 'drug_list/builder.dart';
export 'drug_list/cubit.dart';
export 'drug_list/drug_items/drug_cards.dart';
export 'drug_list/drug_items/drug_checkbox_list.dart';
export 'drug_list/drug_items/drug_selection_list.dart';
export 'drug_search/builder.dart';
export 'drug_search/filter_button.dart';
export 'drug_search/filter_data_wrapper.dart';
Expand Down
4 changes: 2 additions & 2 deletions app/lib/drug_selection/pages/drug_selection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ class DrugSelectionPage extends HookWidget {
activeDrugs: activeDrugs,
keepPosition: true,
useDrugClass: false,
buildDrugItems: buildDrugCheckboxList,
buildDrugItems: buildDrugSelectionList,
drugItemsBuildParams: {
'checkboxesEnabled': _isEditable(state),
'onCheckboxChange': (drug, value) => context
.read<DrugSelectionCubit>()
.updateDrugActivity(drug, value),
},
showDrugInteractionIndicator: false,
showDrugInteractionIndicator: !concludesOnboarding,
),
);
}
Expand Down

0 comments on commit c455385

Please sign in to comment.