Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
938e4eb6
Unverified
Commit
938e4eb6
authored
Jun 08, 2019
by
Gary Qian
Committed by
GitHub
Jun 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add recognizer compatibility API (#34086)
parent
6180a150
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
inline_span.dart
packages/flutter/lib/src/painting/inline_span.dart
+6
-0
text_span.dart
packages/flutter/lib/src/painting/text_span.dart
+1
-0
No files found.
packages/flutter/lib/src/painting/inline_span.dart
View file @
938e4eb6
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
import
'dart:ui'
as
ui
show
ParagraphBuilder
;
import
'dart:ui'
as
ui
show
ParagraphBuilder
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/gestures.dart'
;
import
'basic_types.dart'
;
import
'basic_types.dart'
;
import
'text_painter.dart'
;
import
'text_painter.dart'
;
...
@@ -102,6 +103,11 @@ abstract class InlineSpan extends DiagnosticableTree {
...
@@ -102,6 +103,11 @@ abstract class InlineSpan extends DiagnosticableTree {
@Deprecated
(
'InlineSpan does not innately have children. Use TextSpan.children instead.'
)
@Deprecated
(
'InlineSpan does not innately have children. Use TextSpan.children instead.'
)
List
<
InlineSpan
>
get
children
=>
null
;
List
<
InlineSpan
>
get
children
=>
null
;
/// Returns the [GestureRecognizer] associated with this span if this is an
/// instance of [TextSpan], otherwise returns null.
@Deprecated
(
'InlineSpan does not innately have a recognizer. Use TextSpan.recognizer instead.'
)
GestureRecognizer
get
recognizer
=>
null
;
/// Apply the properties of this object to the given [ParagraphBuilder], from
/// Apply the properties of this object to the given [ParagraphBuilder], from
/// which a [Paragraph] can be obtained.
/// which a [Paragraph] can be obtained.
///
///
...
...
packages/flutter/lib/src/painting/text_span.dart
View file @
938e4eb6
...
@@ -170,6 +170,7 @@ class TextSpan extends InlineSpan {
...
@@ -170,6 +170,7 @@ class TextSpan extends InlineSpan {
/// }
/// }
/// ```
/// ```
/// {@end-tool}
/// {@end-tool}
@override
final
GestureRecognizer
recognizer
;
final
GestureRecognizer
recognizer
;
/// An alternative semantics label for this [TextSpan].
/// An alternative semantics label for this [TextSpan].
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment