Skip to content

Commit 1202aad

Browse files
authored
[Property Editor] Increase label font size (#8827)
1 parent 6b8b15e commit 1202aad

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/devtools_app/lib/src/standalone_ui/ide_shared/property_editor/property_editor_inputs.dart

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,22 +236,27 @@ mixin _PropertyInputMixin<T extends StatefulWidget, U> on State<T> {
236236
}
237237

238238
Widget inputLabel(EditableProperty property, {required ThemeData theme}) {
239+
// Flutter scales down the label font size by 75%, therefore we need to
240+
// increase the size to make it glegible.
241+
final fixedFontStyle = theme.fixedFontStyle.copyWith(
242+
fontSize: defaultFontSize + 1,
243+
);
239244
return RichText(
240245
overflow: TextOverflow.ellipsis,
241246
text: TextSpan(
242247
text: '${property.displayType} ',
243-
style: theme.fixedFontStyle,
248+
style: fixedFontStyle,
244249
children: [
245250
TextSpan(
246251
text: property.name,
247-
style: theme.fixedFontStyle.copyWith(
252+
style: fixedFontStyle.copyWith(
248253
fontWeight: FontWeight.bold,
249254
color: theme.colorScheme.primary,
250255
),
251256
children: [
252257
TextSpan(
253258
text: property.isRequired ? '*' : '',
254-
style: theme.fixedFontStyle,
259+
style: fixedFontStyle,
255260
),
256261
],
257262
),

0 commit comments

Comments
 (0)