Skip to content

Commit

Permalink
feat(app): change order of report indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Nov 29, 2024
1 parent 511cccc commit 9d0db1d
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions app/lib/report/pages/report.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,23 @@ class ReportPage extends HookWidget {
return SizedBox.shrink();
}
var indicatorText = '';
if (currentListOption.drugSubset != null) {
final listHelperText = context.l10n.show_all_dropdown_text(
context.l10n.report_show_all_dropdown_item,
context.l10n.report_show_all_dropdown_items,
);
indicatorText = listHelperText;
}
if (hasActiveInhibitors) {
indicatorText = context.l10n.report_page_indicator_explanation(
final inhibitorText = context.l10n.report_page_indicator_explanation(
drugInteractionIndicatorName,
drugInteractionIndicator
);
}
if (currentListOption.drugSubset != null) {
indicatorText = '$indicatorText\n\n'
'${context.l10n.show_all_dropdown_text(
context.l10n.report_show_all_dropdown_item,
context.l10n.report_show_all_dropdown_items,
)}';
if (indicatorText.isNotBlank) {
indicatorText = '$indicatorText\n\n$inhibitorText';
} else {
indicatorText = inhibitorText;
}
}
return PageIndicatorExplanation(indicatorText);
}
Expand Down

0 comments on commit 9d0db1d

Please sign in to comment.