feat(treemap): Add rebuildToken parameter to support data value updates#2479
feat(treemap): Add rebuildToken parameter to support data value updates#2479AcarFurkan wants to merge 1 commit intosyncfusion:masterfrom
Conversation
Fixes syncfusion#1396 Added optional rebuildToken parameter. When this value changes, the widget rebuilds even if dataCount is unchanged.
|
Hi @AcarFurkan Currently, the This approach will trigger a complete rebuild of the widget, which may reset its state or interrupt animations. We have already logged your feedback for this feature request here: https://www.syncfusion.com/feedback/47083 At this time, we do not have immediate plans to implement this support. Please note that our Syncfusion Flutter packages are not open-source, so we are not currently accepting external contributions. However, your suggestion has been added to our prioritization list for future consideration. Thank you for your understanding and continued support. |
|
Hi @VijayakumarMariappan , I already tried the key suggestion, but as you can see, when we use keys it doesn’t look good, and we can’t ship this to production like this: before.movAs you can also see, I’ve already added a small solution for this. It isn’t complicated and won’t break anything. I believe that if the developers take a look at my small changes, they’ll see that it’s very simple and brings good value |
|
Hi @AcarFurkan I understand the challenges and limitations involved in using key replacement. While the proposed changes can serve as a temporary workaround, we won’t be able to include them in the source code. That said, we recognize the importance of this improvement and will prioritize finding a more robust solution. You can track the progress and updates through the feedback report link shared below. Feedback report: https://www.syncfusion.com/feedback/47083 Thank you for your understanding and continued support. |
Problem
SfTreemapdoesn't update when data values change ifdataCountstays the same.FR: https://www.syncfusion.com/feedback/47083/provide-dynamic-update-support-for-treemap-datasource-without-changing-the-data
Previous Workaround
The only way to force a rebuild was using a
Key:Demo
Before (no update):
before.mov
After (with rebuildToken):
UPDATED.mov
Fixes #1396