Skip to content

Commit 34d583d

Browse files
authored
Replaced deprecated subhead with preferred subtitle1. (#309)
1 parent ffbc4e4 commit 34d583d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/fields/form_builder_phone_field.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class FormBuilderPhoneFieldState extends State<FormBuilderPhoneField> {
265265
CountryPickerUtils.getDefaultFlagImage(_selectedDialogCountry),
266266
Text(
267267
"+${_selectedDialogCountry.phoneCode} ",
268-
style: widget.style ?? Theme.of(context).textTheme.subhead,
268+
style: widget.style ?? Theme.of(context).textTheme.subtitle1,
269269
),
270270
],
271271
),

lib/src/fields/form_builder_typeahead.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class _FormBuilderTypeAheadState<T> extends State<FormBuilderTypeAhead<T>> {
151151
enabled: !_readOnly,
152152
controller: _typeAheadController,
153153
style: _readOnly
154-
? Theme.of(context).textTheme.subhead.copyWith(
154+
? Theme.of(context).textTheme.subtitle1.copyWith(
155155
color: Theme.of(context).disabledColor,
156156
)
157157
: widget.textFieldConfiguration.style,

0 commit comments

Comments
 (0)