Skip to content

Commit

Permalink
feat(app): improve styling of missing / none guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
tamara-slosarek authored and tamslo committed Feb 21, 2025
1 parent 02170b9 commit 2c240ca
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions app/lib/drug/widgets/annotation_cards/guideline.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,18 @@ class GuidelineAnnotationCard extends StatelessWidget {
if (
implicationText != null &&
drug.warningLevel != WarningLevel.none
) TextSpan(
text: context.l10n.drugs_page_implication_description,
style: descriptionStyle,
),
TextSpan(text: ':\n', style: descriptionStyle),
) ...[
TextSpan(
text: context.l10n.drugs_page_implication_description,
style: descriptionStyle,
),
TextSpan(text: ':\n', style: descriptionStyle),
],
WidgetSpan(child: SizedBox(height: PharMeTheme.mediumSpace * 1.3)),
TextSpan(
text:
implicationText ?? context.l10n.drugs_page_no_guidelines_text,
style: implicationText != null
style: drug.warningLevel != WarningLevel.none
? TextStyle(fontWeight: FontWeight.bold)
: TextStyle(fontStyle: FontStyle.italic)
),
Expand Down

0 comments on commit 2c240ca

Please sign in to comment.