Skip to content

Exception caught by gesture library #2

@iamdaiyuan

Description

@iamdaiyuan

When I double clicked card,

════════ Exception caught by gesture library ═══════════════════════════════════
The following _CastError was thrown while dispatching a pointer event:
Null check operator used on a null value

When the exception was thrown, this was the stack
#0 DragGestureRecognizer.acceptGesture
package:flutter/…/gestures/monodrag.dart:321
#1 GestureArenaManager.sweep
package:flutter/…/gestures/arena.dart:157
#2 GestureBinding.handleEvent
package:flutter/…/gestures/binding.dart:362
#3 GestureBinding.dispatchEvent
#4 RendererBinding.dispatchEvent
package:flutter/…/rendering/binding.dart:267
...
Event: PointerUpEvent#97f86(position: Offset(89.0, 224.7))
position: Offset(89.0, 224.7)
Target:

════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 435 pos 12: '_initialButtons == kPrimaryButton': is not true.

My ENV:

Flutter 1.22.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 1aafb3a8b9 (3 weeks ago) • 2020-11-13 09:59:28 -0800
Engine • revision 2c956a31c0
Tools • Dart 2.10.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions