In this Flutter 3.0 changes blog post, it’s noted that “We have further improved the performance of opacity animations in simple cases. In particular, when an Opacity widget contains only a single rendering primitive, the saveLayer method…”. From reading the linked GitHub issue as well, it’s not clear to me what a “single rendering primitive” means. Is anyone here able to clarify and also shed light on when / how developers can take advantage of this optimization? Thanks!
In the end, this was not a developer friendly optimization and speaks more to future optimizations that can be expected for developers to take advantage of.
https://github.com/flutter/engine/pull/30957#issuecomment-1185758069