Skip to content

Conversation

@FeodorFitsner
Copy link
Contributor

@FeodorFitsner FeodorFitsner commented Nov 6, 2025

Added notifyParent = true to relevant controls in scatter and radar chart implementations to ensure parent widgets are notified of changes in child controls. This improves reactivity and data propagation within chart components.

Summary by Sourcery

Add notifyParent flag to child controls in RadarChart and ScatterChart to ensure parent widgets are updated when individual data points, entries, titles, or spots change, improving chart reactivity.

Bug Fixes:

  • Ensure RadarChart refreshes when datasets, entries, or titles are updated by setting notifyParent on relevant controls.
  • Ensure ScatterChart refreshes when individual spots are updated by setting notifyParent on spot controls.

Added notifyParent = true to relevant controls in scatter and radar chart implementations to ensure parent widgets are notified of changes in child controls. This improves reactivity and data propagation within chart components.
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've reviewed this pull request using the Sourcery rules engine

@FeodorFitsner FeodorFitsner requested a review from Copilot November 6, 2025 19:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds notifyParent = true assignments to child controls in radar chart and scatter chart implementations to ensure proper change propagation up the control tree.

  • Sets notifyParent on radar chart data sets, entries, and titles
  • Sets notifyParent on scatter chart spots
  • Aligns these implementations with existing patterns in other chart types

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
sdk/python/packages/flet-charts/src/flutter/flet_charts/lib/src/utils/radar_chart.dart Adds notifyParent = true to dataSet, entry, and title controls to propagate changes to parent controls
sdk/python/packages/flet-charts/src/flutter/flet_charts/lib/src/scatter_chart.dart Adds notifyParent = true to spot controls to propagate changes to parent controls

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 6, 2025

Deploying flet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: f37edbf
Status:⚡️  Build in progress...

View logs

Tap, secondary tap, and double tap event handlers now receive the last TapDownDetails as event data. This enables more detailed event information to be available for these gesture events.

Fix #5784
Introduces handling for tertiary tap down, tap up, long press start, and long press end events in both Dart and Python GestureDetector controls. This enables detection and response to gestures performed with a tertiary button, expanding the range of supported pointer interactions.
@FeodorFitsner FeodorFitsner merged commit aa88388 into main Nov 6, 2025
2 of 16 checks passed
@FeodorFitsner FeodorFitsner deleted the v1-chart-fixes branch November 6, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants