mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
0672055a72ff1265b2aedb037f2848455318f22a changed the Material widget to always use Paths for representing the outline. These paths are later used for clipping and drawing a shadow. This changed introduced a performance regression, see: https://github.com/flutter/flutter/issues/14403 We did not expect a path that is a rounded rectangle to be less performant than a rounded rectangle, as Skia should be able to tell the path is just a rounded rectangle. Until we find a solution for this regression, we keep using RRect when we can represent the shape with it.