Commit eaccf456c419d7f47fe2ae3737bc573d7d71640f

Authored by wdn127929
1 parent ffdc4f76

textfeild 自定义selection粘贴选项

@@ -12,14 +12,14 @@ if (flutterRoot == null) { @@ -12,14 +12,14 @@ if (flutterRoot == null) {
12 } 12 }
13 13
14 14
15 -def flutterVersionCode = "404" 15 +def flutterVersionCode = "405"
16 if (flutterVersionCode == null) { 16 if (flutterVersionCode == null) {
17 - flutterVersionCode = '404' 17 + flutterVersionCode = '405'
18 } 18 }
19 19
20 -def flutterVersionName = "4.0.4" 20 +def flutterVersionName = "4.0.5"
21 if (flutterVersionName == null) { 21 if (flutterVersionName == null) {
22 - flutterVersionName = '4.0.4' 22 + flutterVersionName = '4.0.5'
23 } 23 }
24 apply plugin: 'com.android.application' 24 apply plugin: 'com.android.application'
25 apply plugin: 'kotlin-android' 25 apply plugin: 'kotlin-android'
@@ -4,7 +4,7 @@ source 'https://github.com/CocoaPods/Specs.git' @@ -4,7 +4,7 @@ source 'https://github.com/CocoaPods/Specs.git'
4 # source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git' 4 # source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
5 # source 'https://cdn.cocoapods.org/' 5 # source 'https://cdn.cocoapods.org/'
6 6
7 -platform :ios, '9.0' 7 +platform :ios, '11.0'
8 8
9 9
10 10
@@ -83,7 +83,7 @@ PODS: @@ -83,7 +83,7 @@ PODS:
83 - Flutter 83 - Flutter
84 - permission_handler_apple (9.0.4): 84 - permission_handler_apple (9.0.4):
85 - Flutter 85 - Flutter
86 - - photo_manager (1.0.0): 86 + - photo_manager (2.0.0):
87 - Flutter 87 - Flutter
88 - FlutterMacOS 88 - FlutterMacOS
89 - Reachability (3.2) 89 - Reachability (3.2)
@@ -260,7 +260,7 @@ SPEC CHECKSUMS: @@ -260,7 +260,7 @@ SPEC CHECKSUMS:
260 core_location_fluttify: 9466a411ea7d22c6349c7e6a767ae4623f01eb1d 260 core_location_fluttify: 9466a411ea7d22c6349c7e6a767ae4623f01eb1d
261 device_info: d7d233b645a32c40dfdc212de5cf646ca482f175 261 device_info: d7d233b645a32c40dfdc212de5cf646ca482f175
262 easy_contact_picker: 9ab9dc70e8ddde6e76a19ffc482d7bf899868730 262 easy_contact_picker: 9ab9dc70e8ddde6e76a19ffc482d7bf899868730
263 - Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a 263 + Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
264 flutter_app_badger: b87fc231847b03b92ce1412aa351842e7e97932f 264 flutter_app_badger: b87fc231847b03b92ce1412aa351842e7e97932f
265 flutter_app_update: 65f61da626cb111d1b24674abc4b01728d7723bc 265 flutter_app_update: 65f61da626cb111d1b24674abc4b01728d7723bc
266 flutter_bugly: c9800f4d5bc5bdc27ffdde3417a26ba44266e0c3 266 flutter_bugly: c9800f4d5bc5bdc27ffdde3417a26ba44266e0c3
@@ -280,7 +280,7 @@ SPEC CHECKSUMS: @@ -280,7 +280,7 @@ SPEC CHECKSUMS:
280 package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62 280 package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
281 path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02 281 path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
282 permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce 282 permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce
283 - photo_manager: 84fa94fbeb82e607333ea9a13c43b58e0903a463 283 + photo_manager: 4f6810b7dfc4feb03b461ac1a70dacf91fba7604
284 Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96 284 Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
285 sendsms: 4065f76018b22a3e6987b4630f161feab95cef23 285 sendsms: 4065f76018b22a3e6987b4630f161feab95cef23
286 shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad 286 shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
@@ -295,6 +295,6 @@ SPEC CHECKSUMS: @@ -295,6 +295,6 @@ SPEC CHECKSUMS:
295 wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f 295 wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
296 webview_flutter: 3603125dfd3bcbc9d8d418c3f80aeecf331c068b 296 webview_flutter: 3603125dfd3bcbc9d8d418c3f80aeecf331c068b
297 297
298 -PODFILE CHECKSUM: 1574ae4cc03174899add0135a43cdaf8019bd5fd 298 +PODFILE CHECKSUM: 583d0874d9843cb84ef3a723537d644f42b3ebab
299 299
300 COCOAPODS: 1.11.3 300 COCOAPODS: 1.11.3
@@ -469,7 +469,7 @@ @@ -469,7 +469,7 @@
469 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 469 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
470 GCC_WARN_UNUSED_FUNCTION = YES; 470 GCC_WARN_UNUSED_FUNCTION = YES;
471 GCC_WARN_UNUSED_VARIABLE = YES; 471 GCC_WARN_UNUSED_VARIABLE = YES;
472 - IPHONEOS_DEPLOYMENT_TARGET = 9.0; 472 + IPHONEOS_DEPLOYMENT_TARGET = 11.0;
473 MTL_ENABLE_DEBUG_INFO = NO; 473 MTL_ENABLE_DEBUG_INFO = NO;
474 PROVISIONING_PROFILE_SPECIFIER = "Push Development Profile"; 474 PROVISIONING_PROFILE_SPECIFIER = "Push Development Profile";
475 SDKROOT = iphoneos; 475 SDKROOT = iphoneos;
@@ -563,7 +563,7 @@ @@ -563,7 +563,7 @@
563 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 563 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
564 GCC_WARN_UNUSED_FUNCTION = YES; 564 GCC_WARN_UNUSED_FUNCTION = YES;
565 GCC_WARN_UNUSED_VARIABLE = YES; 565 GCC_WARN_UNUSED_VARIABLE = YES;
566 - IPHONEOS_DEPLOYMENT_TARGET = 9.0; 566 + IPHONEOS_DEPLOYMENT_TARGET = 11.0;
567 MTL_ENABLE_DEBUG_INFO = YES; 567 MTL_ENABLE_DEBUG_INFO = YES;
568 ONLY_ACTIVE_ARCH = YES; 568 ONLY_ACTIVE_ARCH = YES;
569 PROVISIONING_PROFILE_SPECIFIER = "Push Development Profile"; 569 PROVISIONING_PROFILE_SPECIFIER = "Push Development Profile";
@@ -614,7 +614,7 @@ @@ -614,7 +614,7 @@
614 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 614 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
615 GCC_WARN_UNUSED_FUNCTION = YES; 615 GCC_WARN_UNUSED_FUNCTION = YES;
616 GCC_WARN_UNUSED_VARIABLE = YES; 616 GCC_WARN_UNUSED_VARIABLE = YES;
617 - IPHONEOS_DEPLOYMENT_TARGET = 9.0; 617 + IPHONEOS_DEPLOYMENT_TARGET = 11.0;
618 MTL_ENABLE_DEBUG_INFO = NO; 618 MTL_ENABLE_DEBUG_INFO = NO;
619 PROVISIONING_PROFILE_SPECIFIER = "Push Development Profile"; 619 PROVISIONING_PROFILE_SPECIFIER = "Push Development Profile";
620 SDKROOT = iphoneos; 620 SDKROOT = iphoneos;
@@ -92,5 +92,7 @@ @@ -92,5 +92,7 @@
92 <string>INUIMFK21WGH</string> 92 <string>INUIMFK21WGH</string>
93 <key>io.flutter.embedded_views_preview</key> 93 <key>io.flutter.embedded_views_preview</key>
94 <string>YES</string> 94 <string>YES</string>
  95 + <key>CADisableMinimumFrameDurationOnPhone</key>
  96 + <true/>
95 </dict> 97 </dict>
96 </plist> 98 </plist>
@@ -50,8 +50,8 @@ class MyTextSelectionControls extends TextSelectionControls { @@ -50,8 +50,8 @@ class MyTextSelectionControls extends TextSelectionControls {
50 clipboardStatus: clipboardStatus, 50 clipboardStatus: clipboardStatus,
51 handleCut: canCut(delegate) ? () => handleCut(delegate, null) : null, 51 handleCut: canCut(delegate) ? () => handleCut(delegate, null) : null,
52 handleCopy: canCopy(delegate) ? () => handleCopy(delegate) : null, 52 handleCopy: canCopy(delegate) ? () => handleCopy(delegate) : null,
53 - // handlePaste: () => handlePaste(delegate),  
54 - handlePaste: canPaste(delegate) ? () => handlePaste(delegate) : null, 53 + handlePaste: () => null,
  54 + // handlePaste: canPaste(delegate) ? () => handlePaste(delegate) : null,
55 handleSelectAll: 55 handleSelectAll:
56 canSelectAll(delegate) ? () => handleSelectAll(delegate) : null, 56 canSelectAll(delegate) ? () => handleSelectAll(delegate) : null,
57 handleLike: () async { 57 handleLike: () async {
@@ -92,12 +92,12 @@ class MyTextSelectionControls extends TextSelectionControls { @@ -92,12 +92,12 @@ class MyTextSelectionControls extends TextSelectionControls {
92 BuildContext context, TextSelectionHandleType type, double textLineHeight, 92 BuildContext context, TextSelectionHandleType type, double textLineHeight,
93 [VoidCallback onTap, double startGlyphHeight, double endGlyphHeight]) { 93 [VoidCallback onTap, double startGlyphHeight, double endGlyphHeight]) {
94 final Widget handle = SizedBox( 94 final Widget handle = SizedBox(
95 - // width: _kHandleSize,  
96 - // height: _kHandleSize,  
97 - // child: Image.asset(  
98 - // 'assets/add_store.png',  
99 - // ),  
100 - ); 95 + // width: _kHandleSize,
  96 + // height: _kHandleSize,
  97 + // child: Image.asset(
  98 + // 'assets/add_store.png',
  99 + // ),
  100 + );
101 101
102 // [handle] is a circle, with a rectangle in the top left quadrant of that 102 // [handle] is a circle, with a rectangle in the top left quadrant of that
103 // circle (an onion pointing to 10:30). We rotate [handle] to point 103 // circle (an onion pointing to 10:30). We rotate [handle] to point
@@ -286,15 +286,15 @@ class _TextSelectionControlsToolbarState @@ -286,15 +286,15 @@ class _TextSelectionControlsToolbarState
286 ), 286 ),
287 if (widget.handlePaste != null && 287 if (widget.handlePaste != null &&
288 widget.clipboardStatus?.value == ClipboardStatus.pasteable) 288 widget.clipboardStatus?.value == ClipboardStatus.pasteable)
289 - _TextSelectionToolbarItemData(  
290 - label: localizations.pasteButtonLabel,  
291 - onPressed: widget.handlePaste,  
292 - ),  
293 - if (widget.handleSelectAll != null)  
294 - _TextSelectionToolbarItemData(  
295 - label: localizations.selectAllButtonLabel,  
296 - onPressed: widget.handleSelectAll,  
297 - ), 289 + // _TextSelectionToolbarItemData(
  290 + // label: localizations.pasteButtonLabel,
  291 + // onPressed: widget.handlePaste,
  292 + // ),
  293 + if (widget.handleSelectAll != null)
  294 + _TextSelectionToolbarItemData(
  295 + label: localizations.selectAllButtonLabel,
  296 + onPressed: widget.handleSelectAll,
  297 + ),
298 _TextSelectionToolbarItemData( 298 _TextSelectionToolbarItemData(
299 label: '粘贴', 299 label: '粘贴',
300 onPressed: widget.handleLike, 300 onPressed: widget.handleLike,