We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@override Widget build(BuildContext context) { return Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ Expanded( child: CustomPaint( foregroundPainter: SelectionPainter(notifier: notifierForeground), child: RepaintBoundary( child: CanvasTouchDetector( //key: UniqueKey(), gesturesToOverride: const [ GestureType.onTapDown, ], builder: (BuildContext context) { return CustomPaint( isComplex: true, willChange: false, painter: ChartPainter<D, Rx, Ry>( onItemSelected: (List<Rect> selectionRects, item, index, xAxisIndex, layer, tapEvent) { notifierForeground.value = selectionRects; _showTooltip(selectionRects); }, ), ); }, ), ), ), ), ], ); }
After state.build called multi times, onTapDown event will also fire multi times with one click. It seems pre touch rects not cleared ?
state.build
Workaround: add UniqueKey to CanvasTouchDetector
UniqueKey
CanvasTouchDetector
The text was updated successfully, but these errors were encountered:
@taosimple workaround didn't help in my case. I have it wrapped in an InteractiveViewer. It still fires it multiple times
Sorry, something went wrong.
No branches or pull requests
After
state.build
called multi times, onTapDown event will also fire multi times with one click. It seems pre touch rects not cleared ?Workaround: add
UniqueKey
toCanvasTouchDetector
The text was updated successfully, but these errors were encountered: