소스 검색

Updated for latest dev channel

Anatoly Pulyaevskiy 5 년 전
부모
커밋
077cd10dfb

+ 4
- 4
packages/zefyr/example/ios/Podfile.lock 파일 보기

@@ -19,10 +19,10 @@ EXTERNAL SOURCES:
19 19
     :path: ".symlinks/plugins/url_launcher/ios"
20 20
 
21 21
 SPEC CHECKSUMS:
22
-  Flutter: 9d0fac939486c9aba2809b7982dfdbb47a7b0296
23
-  image_picker: 86b84c4fe89267356a1f17297a45b5d317ebd2e7
24
-  url_launcher: 92b89c1029a0373879933c21642958c874539095
22
+  Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a
23
+  image_picker: 16e5fec1fbc87fd3b297c53e4048521eaf17cd06
24
+  url_launcher: 0067ddb8f10d36786672aa0722a21717dba3a298
25 25
 
26 26
 PODFILE CHECKSUM: 1e5af4103afd21ca5ead147d7b81d06f494f51a2
27 27
 
28
-COCOAPODS: 1.5.3
28
+COCOAPODS: 1.7.2

+ 6
- 2
packages/zefyr/example/ios/Runner.xcodeproj/project.pbxproj 파일 보기

@@ -41,11 +41,13 @@
41 41
 /* Begin PBXFileReference section */
42 42
 		1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
43 43
 		1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
44
+		2BB550984C4EB178783ADADA /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
44 45
 		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
45 46
 		3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
46 47
 		7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
47 48
 		7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
48 49
 		7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
50
+		892F13FEEEDA93A39D86B7F4 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
49 51
 		9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
50 52
 		9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
51 53
 		9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
@@ -139,6 +141,8 @@
139 141
 		E477B343036FAA13A2565E3A /* Pods */ = {
140 142
 			isa = PBXGroup;
141 143
 			children = (
144
+				892F13FEEEDA93A39D86B7F4 /* Pods-Runner.debug.xcconfig */,
145
+				2BB550984C4EB178783ADADA /* Pods-Runner.release.xcconfig */,
142 146
 			);
143 147
 			name = Pods;
144 148
 			sourceTree = "<group>";
@@ -223,7 +227,7 @@
223 227
 			files = (
224 228
 			);
225 229
 			inputPaths = (
226
-				"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
230
+				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
227 231
 				"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
228 232
 			);
229 233
 			name = "[CP] Embed Pods Frameworks";
@@ -232,7 +236,7 @@
232 236
 			);
233 237
 			runOnlyForDeploymentPostprocessing = 0;
234 238
 			shellPath = /bin/sh;
235
-			shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
239
+			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
236 240
 			showEnvVarsInLog = 0;
237 241
 		};
238 242
 		3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {

+ 1
- 1
packages/zefyr/lib/src/widgets/rich_text.dart 파일 보기

@@ -181,7 +181,7 @@ class RenderZefyrParagraph extends RenderParagraph
181 181
   //
182 182
 
183 183
   @override
184
-  void set text(TextSpan value) {
184
+  void set text(InlineSpan value) {
185 185
     _prototypePainter.text = new TextSpan(text: '.', style: value.style);
186 186
     _selectionRects = null;
187 187
     super.text = value;

+ 14
- 3
packages/zefyr/lib/src/widgets/selection.dart 파일 보기

@@ -72,14 +72,12 @@ class _ZefyrSelectionOverlayState extends State<ZefyrSelectionOverlay>
72 72
   }
73 73
 
74 74
   void showToolbar() {
75
-    final scope = ZefyrScope.of(context);
76
-    assert(scope != null);
77 75
     final toolbarOpacity = _toolbarController.view;
78 76
     _toolbar = new OverlayEntry(
79 77
       builder: (context) => new FadeTransition(
80 78
             opacity: toolbarOpacity,
81 79
             child: new _SelectionToolbar(
82
-              scope: scope,
80
+              scope: _editor,
83 81
               controls: widget.controls,
84 82
               delegate: this,
85 83
             ),
@@ -273,6 +271,19 @@ class _ZefyrSelectionOverlayState extends State<ZefyrSelectionOverlay>
273 271
     );
274 272
     widget.controller.updateSelection(selection, source: ChangeSource.local);
275 273
   }
274
+
275
+  // TODO: these methods should also take into account enabled state.
276
+  @override
277
+  bool get copyEnabled => _editor.isEditable;
278
+
279
+  @override
280
+  bool get cutEnabled => _editor.isEditable;
281
+
282
+  @override
283
+  bool get pasteEnabled => _editor.isEditable;
284
+
285
+  @override
286
+  bool get selectAllEnabled => _editor.isEditable;
276 287
 }
277 288
 
278 289
 enum _SelectionHandlePosition { base, extent }