flutter 3.44 pre

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-13 09:36:54 +08:00
parent 3ee60f9877
commit f6628cf2fe
31 changed files with 1284 additions and 327 deletions

View File

@@ -294,6 +294,7 @@ class CupertinoRichTextField extends StatefulWidget {
this.stylusHandwritingEnabled =
EditableText.defaultStylusHandwritingEnabled,
this.enableIMEPersonalizedLearning = true,
this.enableInlinePrediction,
this.contextMenuBuilder = _defaultContextMenuBuilder,
this.spellCheckConfiguration,
this.magnifierConfiguration,
@@ -439,6 +440,7 @@ class CupertinoRichTextField extends StatefulWidget {
this.scribbleEnabled = true,
this.stylusHandwritingEnabled = true,
this.enableIMEPersonalizedLearning = true,
this.enableInlinePrediction,
this.contextMenuBuilder = _defaultContextMenuBuilder,
this.spellCheckConfiguration,
this.magnifierConfiguration,
@@ -799,6 +801,9 @@ class CupertinoRichTextField extends StatefulWidget {
/// {@macro flutter.services.TextInputConfiguration.enableIMEPersonalizedLearning}
final bool enableIMEPersonalizedLearning;
/// {@macro flutter.services.TextInputConfiguration.enableInlinePrediction}
final bool? enableInlinePrediction;
/// {@macro flutter.widgets.editableText.contentInsertionConfiguration}
final ContentInsertionConfiguration? contentInsertionConfiguration;
@@ -1116,6 +1121,13 @@ class CupertinoRichTextField extends StatefulWidget {
defaultValue: true,
),
)
..add(
DiagnosticsProperty<bool?>(
'enableInlinePrediction',
enableInlinePrediction,
defaultValue: null,
),
)
..add(
DiagnosticsProperty<SpellCheckConfiguration>(
'spellCheckConfiguration',
@@ -1738,6 +1750,7 @@ class _CupertinoRichTextFieldState extends State<CupertinoRichTextField>
scribbleEnabled: widget.scribbleEnabled,
stylusHandwritingEnabled: widget.stylusHandwritingEnabled,
enableIMEPersonalizedLearning: widget.enableIMEPersonalizedLearning,
enableInlinePrediction: widget.enableInlinePrediction,
contentInsertionConfiguration: widget.contentInsertionConfiguration,
contextMenuBuilder: widget.contextMenuBuilder,
spellCheckConfiguration: spellCheckConfiguration,