mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Previously we'd hit an ASSERT that elements in the style sharing list support style sharing. However, it can happen that an element gets added to the style sharing list and then loses the ability to share styles because it has an active animation. This CL works around the problem by skiping over those elements when considering style sharing candidates. A better solution would be to clear the style sharing list when it might contain such an element. However, it's likely we will remove style sharing in the future so its easier to just work aroudn the issue for now. R=ojan@chromium.org Review URL: https://codereview.chromium.org/1036933002