feat: pass hintStyle to TextFormFields in LinkDialog so the placeholder text can be styled

pull/1795/head
MK 1 year ago
parent 05c17e1ebc
commit 007fa25e23
No known key found for this signature in database
GPG Key ID: 7DBFD12F614487C
  1. 6
      lib/src/widgets/toolbar/buttons/link_style_button.dart

@ -265,6 +265,9 @@ class _LinkDialogState extends State<_LinkDialog> {
decoration: InputDecoration(
labelText: context.loc.text,
hintText: context.loc.pleaseEnterTextForYourLink,
hintStyle: widget.dialogTheme?.inputTextStyle?.copyWith(
color: widget.dialogTheme?.inputTextStyle?.color
?.withOpacity(0.65)),
labelStyle: widget.dialogTheme?.labelTextStyle,
floatingLabelStyle: widget.dialogTheme?.labelTextStyle,
),
@ -284,6 +287,9 @@ class _LinkDialogState extends State<_LinkDialog> {
decoration: InputDecoration(
labelText: context.loc.link,
hintText: context.loc.pleaseEnterTheLinkURL,
hintStyle: widget.dialogTheme?.inputTextStyle?.copyWith(
color: widget.dialogTheme?.inputTextStyle?.color
?.withOpacity(0.65)),
labelStyle: widget.dialogTheme?.labelTextStyle,
floatingLabelStyle: widget.dialogTheme?.labelTextStyle,
),

Loading…
Cancel
Save