flutter 3.44.0

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-16 22:51:33 +08:00
parent ad1583706a
commit 1fcc26464f
73 changed files with 1350 additions and 530 deletions

View File

@@ -2,11 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: prefer_initializing_formals
/// @docImport 'package:flutter/material.dart';
library;
import 'package:PiliPlus/common/widgets/flutter/text_field/editable_text.dart';
import 'package:flutter/cupertino.dart' hide EditableText, EditableTextState;
import 'package:flutter/cupertino.dart'
hide EditableText, EditableTextState, CupertinoAdaptiveTextSelectionToolbar;
import 'package:flutter/foundation.dart' show defaultTargetPlatform;
import 'package:flutter/rendering.dart';

View File

@@ -2,11 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: prefer_initializing_formals
/// @docImport 'package:flutter/material.dart';
library;
import 'package:PiliPlus/common/widgets/flutter/text_field/editable_text.dart';
import 'package:flutter/cupertino.dart' hide EditableText, EditableTextState;
import 'package:flutter/cupertino.dart'
hide EditableText, EditableTextState, CupertinoSpellCheckSuggestionsToolbar;
import 'package:flutter/scheduler.dart';
import 'package:flutter/services.dart'
show SelectionChangedCause, SuggestionSpan;

View File

@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: prefer_initializing_formals
/// @docImport 'package:flutter/material.dart';
library;
@@ -294,6 +296,7 @@ class CupertinoRichTextField extends StatefulWidget {
this.stylusHandwritingEnabled =
EditableText.defaultStylusHandwritingEnabled,
this.enableIMEPersonalizedLearning = true,
this.enableInlinePrediction,
this.contextMenuBuilder = _defaultContextMenuBuilder,
this.spellCheckConfiguration,
this.magnifierConfiguration,
@@ -439,6 +442,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 +803,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 +1123,13 @@ class CupertinoRichTextField extends StatefulWidget {
defaultValue: true,
),
)
..add(
DiagnosticsProperty<bool?>(
'enableInlinePrediction',
enableInlinePrediction,
defaultValue: null,
),
)
..add(
DiagnosticsProperty<SpellCheckConfiguration>(
'spellCheckConfiguration',
@@ -1738,6 +1752,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,