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
cd92e11f
Commit
cd92e11f
authored
Jan 10, 2017
by
Ian Hickson
Committed by
GitHub
Jan 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the actual pipeline owner for this assert. (#7400)
parent
84cf5489
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
gesture_detector.dart
packages/flutter/lib/src/widgets/gesture_detector.dart
+1
-5
No files found.
packages/flutter/lib/src/widgets/gesture_detector.dart
View file @
cd92e11f
...
@@ -382,11 +382,7 @@ class RawGestureDetectorState extends State<RawGestureDetector> {
...
@@ -382,11 +382,7 @@ class RawGestureDetectorState extends State<RawGestureDetector> {
/// the gesture detector should be enabled.
/// the gesture detector should be enabled.
void
replaceGestureRecognizers
(
Map
<
Type
,
GestureRecognizerFactory
>
gestures
)
{
void
replaceGestureRecognizers
(
Map
<
Type
,
GestureRecognizerFactory
>
gestures
)
{
assert
(()
{
assert
(()
{
// TODO kgiesing This assert will trigger if the owner of the current
if
(!
context
.
findRenderObject
().
owner
.
debugDoingLayout
)
{
// tree is different from the owner assigned to the renderer instance.
// Once elements have a notion of owners this assertion can be written
// more clearly.
if
(!
RendererBinding
.
instance
.
pipelineOwner
.
debugDoingLayout
)
{
throw
new
FlutterError
(
throw
new
FlutterError
(
'Unexpected call to replaceGestureRecognizers() method of RawGestureDetectorState.
\n
'
'Unexpected call to replaceGestureRecognizers() method of RawGestureDetectorState.
\n
'
'The replaceGestureRecognizers() method can only be called during the layout phase. '
'The replaceGestureRecognizers() method can only be called during the layout phase. '
...
...
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