mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-02 17:18:13 +08:00
@@ -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';
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user