Welcome to the Flutter feedback portal. We’re happy you’re here! If you have feedback on how to improve the Flutter, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

When using a range for a treemap, you typically want each end of the range to be the most intense color, with the values in the middle being desaturated (such as in the example). The current implementation of SfTreemap makes this rather awkward to implement because there is an enforced constraint that minSaturation is less than maxSaturation.

You're working around this in the example code by creating 14 different TreemapColorMapper entries with different colors that simulate desatuaration, but it would be so much more convenient if you could simply remove the restriction and scale from one saturation to another, regardless of value, which would mean only 2 TreemapColorMappers would be required (one for each half of the range).

Anyway I'm currently using a simpler workaround which is to just subtract each value from the midpoint value if it's on a certain side of it, but it would be nice to not have to do that.