Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:19:18 +08:00
parent b1432b5ff5
commit 148e0872b4
17 changed files with 126 additions and 127 deletions

View File

@@ -1436,7 +1436,7 @@ class _CupertinoRichTextFieldState extends State<CupertinoRichTextField>
children: <Widget>[
// Insert a prefix at the front if the prefix visibility mode matches
// the current text state.
if (prefixWidget != null) prefixWidget,
?prefixWidget,
// In the middle part, stack the placeholder on top of the main EditableText
// if needed.
Expanded(
@@ -1448,12 +1448,12 @@ class _CupertinoRichTextFieldState extends State<CupertinoRichTextField>
alignment: AlignmentDirectional.center,
textDirection: widget.textDirection,
children: <Widget>[
if (placeholder != null) placeholder,
?placeholder,
editableText
],
),
),
if (suffixWidget != null) suffixWidget,
?suffixWidget,
],
);
},