From 007fa25e23b2eb63bccf96179aaad1edd9518bf0 Mon Sep 17 00:00:00 2001 From: MK <24855936+muradkhan101@users.noreply.github.com> Date: Sun, 31 Mar 2024 02:43:35 -0700 Subject: [PATCH] feat: pass hintStyle to TextFormFields in LinkDialog so the placeholder text can be styled --- lib/src/widgets/toolbar/buttons/link_style_button.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/widgets/toolbar/buttons/link_style_button.dart b/lib/src/widgets/toolbar/buttons/link_style_button.dart index dfa22817..fb036e7f 100644 --- a/lib/src/widgets/toolbar/buttons/link_style_button.dart +++ b/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, ),