After zooming the chart maximum time it causes error for panning or zooming again, when try to zoom again or even pan it shows this error
this is so annoying I am trying to set chart for realtime live data but this error stops everything and I can't do anything further after this error comes, please provide the solution as soon as possible.
E/flutter (26720): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 377 pos 12: '_initialButtons == kPrimaryButton': is not true.
E/flutter (26720): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:42:39)
E/flutter (26720): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:38:5)
E/flutter (26720): #2 DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:377:12)
E/flutter (26720): #3 DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:308:7)
E/flutter (26720): #4 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter (26720): #5 GestureArenaManager.release (package:flutter/src/gestures/arena.dart:199:7)
E/flutter (26720): #6 DoubleTapGestureRecognizer._reset (package:flutter/src/gestures/multitap.dart:259:44)
E/flutter (26720): #7 _rootRun (dart:async/zone.dart:1122:38)
E/flutter (26720): #8 _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter (26720): #9 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
E/flutter (26720): #10 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23)
E/flutter (26720): #11 _rootRun (dart:async/zone.dart:1126:13)
E/flutter (26720): #12 _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter (26720): #13 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:949:23)
E/flutter (26720): #14 Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23:15)
E/flutter (26720): #15 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:384:19)
E/flutter (26720): #16 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:418:5)
E/flutter (26720): #17 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
E/flutter (26720):
════════ Exception caught by gesture library ═══════════════════════════════════════════════════════
The following assertion was thrown while routing a pointer event:
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 407 pos 12: '_initialButtons == kPrimaryButton': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2 DragGestureRecognizer._checkEnd (package:flutter/src/gestures/monodrag.dart:407:12)
#3 DragGestureRecognizer.didStopTrackingLastPointer (package:flutter/src/gestures/monodrag.dart:348:9)
#4 OneSequenceGestureRecognizer.stopTrackingPointer (package:flutter/src/gestures/recognizer.dart:336:9)
#5 DragGestureRecognizer._giveUpPointer (package:flutter/src/gestures/monodrag.dart:357:5)
#6 DragGestureRecognizer.handleEvent (package:flutter/src/gestures/monodrag.dart:281:7)
...
Event: PointerUpEvent#a0af7(position: Offset(391.0, 198.7), localPosition: Offset(381.0, 143.7), timeStamp: 23:35:00.741000, pointer: 11, kind: touch, device: 1, down: false, pressureMin: 0.0, size: 0.0, radiusMajor: 1.7, radiusMinor: 1.7, orientation: -1.6)
position: Offset(391.0, 198.7)
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ (2) Exception caught by gesture library ═══════════════════════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 407 pos 12: '_initialButtons == kPrimaryButton': is not true.
═══════════════════════════════════════════════════════════════════════════════════════════════