Skip to content

Exception when hiding a series #9

@MsXam

Description

@MsXam

When you tap on a legend to hide a series, then tap the graph - you get an exception :

The following NoSuchMethodError was thrown while dispatching a pointer event:
The method 'contains' was called on null.
Receiver: null
Tried calling: contains(Instance of 'Offset')
When the exception was thrown, this was the stack
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:50:5)
#1 _ContainerArea._bindInteractionWidgets._findSeries
package:syncfusion_flutter_charts/…/base/chart_base.dart:1438
#2 _ContainerArea._bindInteractionWidgets.
package:syncfusion_flutter_charts/…/base/chart_base.dart:1532
#3 RenderPointerListener.handleEvent
package:flutter/…/rendering/proxy_box.dart:2683
#4 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart:198
...
Event: PointerDownEvent#4e7ef(position: Offset(238.7, 473.0), timeStamp: 89:38:41.622606, pointer: 96, kind: touch, device: 140607296318576, buttons: 1, down: true, pressure: 0.0, pressureMin: 0.0, pressureMax: 6.7, radiusMajor: 6.7, radiusMin: 5.0, radiusMax: 8.3, orientation: -1.6)
position: Offset(238.7, 473.0)
Target: RenderPointerListener#992e2 relayoutBoundary=up1
parentData: not positioned; offset=Offset(0.0, 0.0) (can use size)
constraints: BoxConstraints(0.0<=w<=307.0, 0.0<=h<=450.0)
size: Size(307.0, 450.0)
behavior: deferToChild
listeners: down, move, up

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions