Commit eaccf456c419d7f47fe2ae3737bc573d7d71640f

Authored by wdn127929
1 parent ffdc4f76

textfeild 自定义selection粘贴选项

... ... @@ -12,14 +12,14 @@ if (flutterRoot == null) {
}
def flutterVersionCode = "404"
def flutterVersionCode = "405"
if (flutterVersionCode == null) {
flutterVersionCode = '404'
flutterVersionCode = '405'
}
def flutterVersionName = "4.0.4"
def flutterVersionName = "4.0.5"
if (flutterVersionName == null) {
flutterVersionName = '4.0.4'
flutterVersionName = '4.0.5'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
... ...
... ... @@ -4,7 +4,7 @@ source 'https://github.com/CocoaPods/Specs.git'
# source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
# source 'https://cdn.cocoapods.org/'
platform :ios, '9.0'
platform :ios, '11.0'
... ...
... ... @@ -83,7 +83,7 @@ PODS:
- Flutter
- permission_handler_apple (9.0.4):
- Flutter
- photo_manager (1.0.0):
- photo_manager (2.0.0):
- Flutter
- FlutterMacOS
- Reachability (3.2)
... ... @@ -260,7 +260,7 @@ SPEC CHECKSUMS:
core_location_fluttify: 9466a411ea7d22c6349c7e6a767ae4623f01eb1d
device_info: d7d233b645a32c40dfdc212de5cf646ca482f175
easy_contact_picker: 9ab9dc70e8ddde6e76a19ffc482d7bf899868730
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_app_badger: b87fc231847b03b92ce1412aa351842e7e97932f
flutter_app_update: 65f61da626cb111d1b24674abc4b01728d7723bc
flutter_bugly: c9800f4d5bc5bdc27ffdde3417a26ba44266e0c3
... ... @@ -280,7 +280,7 @@ SPEC CHECKSUMS:
package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce
photo_manager: 84fa94fbeb82e607333ea9a13c43b58e0903a463
photo_manager: 4f6810b7dfc4feb03b461ac1a70dacf91fba7604
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
sendsms: 4065f76018b22a3e6987b4630f161feab95cef23
shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
... ... @@ -295,6 +295,6 @@ SPEC CHECKSUMS:
wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
webview_flutter: 3603125dfd3bcbc9d8d418c3f80aeecf331c068b
PODFILE CHECKSUM: 1574ae4cc03174899add0135a43cdaf8019bd5fd
PODFILE CHECKSUM: 583d0874d9843cb84ef3a723537d644f42b3ebab
COCOAPODS: 1.11.3
... ...
... ... @@ -469,7 +469,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = NO;
PROVISIONING_PROFILE_SPECIFIER = "Push Development Profile";
SDKROOT = iphoneos;
... ... @@ -563,7 +563,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
PROVISIONING_PROFILE_SPECIFIER = "Push Development Profile";
... ... @@ -614,7 +614,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = NO;
PROVISIONING_PROFILE_SPECIFIER = "Push Development Profile";
SDKROOT = iphoneos;
... ...
... ... @@ -92,5 +92,7 @@
<string>INUIMFK21WGH</string>
<key>io.flutter.embedded_views_preview</key>
<string>YES</string>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
</dict>
</plist>
... ...
... ... @@ -50,8 +50,8 @@ class MyTextSelectionControls extends TextSelectionControls {
clipboardStatus: clipboardStatus,
handleCut: canCut(delegate) ? () => handleCut(delegate, null) : null,
handleCopy: canCopy(delegate) ? () => handleCopy(delegate) : null,
// handlePaste: () => handlePaste(delegate),
handlePaste: canPaste(delegate) ? () => handlePaste(delegate) : null,
handlePaste: () => null,
// handlePaste: canPaste(delegate) ? () => handlePaste(delegate) : null,
handleSelectAll:
canSelectAll(delegate) ? () => handleSelectAll(delegate) : null,
handleLike: () async {
... ... @@ -92,12 +92,12 @@ class MyTextSelectionControls extends TextSelectionControls {
BuildContext context, TextSelectionHandleType type, double textLineHeight,
[VoidCallback onTap, double startGlyphHeight, double endGlyphHeight]) {
final Widget handle = SizedBox(
// width: _kHandleSize,
// height: _kHandleSize,
// child: Image.asset(
// 'assets/add_store.png',
// ),
);
// width: _kHandleSize,
// height: _kHandleSize,
// child: Image.asset(
// 'assets/add_store.png',
// ),
);
// [handle] is a circle, with a rectangle in the top left quadrant of that
// circle (an onion pointing to 10:30). We rotate [handle] to point
... ... @@ -286,15 +286,15 @@ class _TextSelectionControlsToolbarState
),
if (widget.handlePaste != null &&
widget.clipboardStatus?.value == ClipboardStatus.pasteable)
_TextSelectionToolbarItemData(
label: localizations.pasteButtonLabel,
onPressed: widget.handlePaste,
),
if (widget.handleSelectAll != null)
_TextSelectionToolbarItemData(
label: localizations.selectAllButtonLabel,
onPressed: widget.handleSelectAll,
),
// _TextSelectionToolbarItemData(
// label: localizations.pasteButtonLabel,
// onPressed: widget.handlePaste,
// ),
if (widget.handleSelectAll != null)
_TextSelectionToolbarItemData(
label: localizations.selectAllButtonLabel,
onPressed: widget.handleSelectAll,
),
_TextSelectionToolbarItemData(
label: '粘贴',
onPressed: widget.handleLike,
... ...