Skip to content

Commit 1a6f1cd

Browse files
committed
Fix failing test
1 parent 366d755 commit 1a6f1cd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/devtools_app/lib/src/shared/console/widgets/description.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ class DiagnosticsNodeDescription extends StatelessWidget {
303303
// provide some contrast between the name and description if both are
304304
// present.
305305
textStyle = textStyle.merge(theme.subtleTextStyle);
306+
final fontSize = textStyle.fontSize;
307+
if (fontSize != null) {
308+
textStyle = textStyle.copyWith(fontSize: fontSize);
309+
}
306310
}
307311

308312
if (diagnosticLocal.isCreatedByLocalProject) {
@@ -398,7 +402,11 @@ class DiagnosticsNodeDescription extends StatelessWidget {
398402
// those that were:
399403
if (!diagnosticLocal.isCreatedByLocalProject &&
400404
diagnosticLocal.description != '[root]') {
405+
final fontSize = textStyle.fontSize;
401406
textStyle = textStyle.merge(theme.subtleTextStyle);
407+
if (fontSize != null) {
408+
textStyle = textStyle.copyWith(fontSize: fontSize);
409+
}
402410
}
403411

404412
var diagnosticDescription = buildDescription(

0 commit comments

Comments
 (0)