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
d998edd3
Commit
d998edd3
authored
Feb 27, 2016
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2236 from Hixie/raw-gesture-detector-assert
Fix crash in Block.
parents
6f7ceff0
fcb30719
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
gesture_detector.dart
packages/flutter/lib/src/widgets/gesture_detector.dart
+2
-16
No files found.
packages/flutter/lib/src/widgets/gesture_detector.dart
View file @
d998edd3
...
...
@@ -279,22 +279,8 @@ class RawGestureDetectorState extends State<RawGestureDetector> {
/// the gesture detector should be enabled.
void
replaceGestureRecognizers
(
Map
<
Type
,
GestureRecognizerFactory
>
gestures
)
{
assert
(()
{
RenderObject
renderObject
=
context
.
findRenderObject
();
if
(!
config
.
excludeFromSemantics
)
{
assert
(
renderObject
is
RenderSemanticsGestureHandler
);
RenderSemanticsGestureHandler
semanticsGestureHandler
=
renderObject
;
renderObject
=
semanticsGestureHandler
.
child
;
}
assert
(
renderObject
is
RenderPointerListener
);
RenderPointerListener
pointerListener
=
renderObject
;
renderObject
=
pointerListener
.
child
;
if
(!
renderObject
.
debugDoingThisLayout
)
{
throw
new
WidgetError
(
'replaceGestureRecognizers() can only be called during the layout phase of the GestureDetector
\'
s nearest descendant RenderObjectWidget.
\n
'
'In this particular case, that is:
\n
'
'
$renderObject
'
);
}
if
(!
RenderObject
.
debugDoingLayout
)
throw
new
WidgetError
(
'replaceGestureRecognizers() can only be called during the layout phase.'
);
return
true
;
});
_syncAll
(
gestures
);
...
...
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