diff --git a/app/lib/common/widgets/gene_modulator_list.dart b/app/lib/common/widgets/gene_modulator_list.dart index 12ae7207..a601da10 100644 --- a/app/lib/common/widgets/gene_modulator_list.dart +++ b/app/lib/common/widgets/gene_modulator_list.dart @@ -52,7 +52,7 @@ class GeneModulatorList { return content; } - String asString(BuildContext context, {String linePrefix = ''}) { + String asString(BuildContext context) { final listString = StringBuffer(); for (final modulatorContentEntry in getContent(context).entries) { final entryString = StringBuffer(modulatorContentEntry.key); @@ -60,10 +60,10 @@ class GeneModulatorList { entryString.write(' ${modulatorContentEntry.value.first}'); } else { for (final drugName in modulatorContentEntry.value) { - entryString.write('\n$linePrefix- $drugName'); + entryString.write('\n- $drugName'); } } - listString.write('\n$linePrefix$entryString'); + listString.write('\n\n$entryString'); } return listString.toString(); } diff --git a/app/lib/common/widgets/phenoconversion_explanation.dart b/app/lib/common/widgets/phenoconversion_explanation.dart index 0c0e7bb5..d5c57f8d 100644 --- a/app/lib/common/widgets/phenoconversion_explanation.dart +++ b/app/lib/common/widgets/phenoconversion_explanation.dart @@ -99,7 +99,7 @@ String? getPhenoconversionExplanationString({ geneName: genotypeResult.gene, onlyActiveDrugs: true, displayedDrug: drugName, - ).asString(context, linePrefix: ' '), + ).asString(context), ]).join(displayConfig.partSeparator); }