Flutter-Bounty-Hunters / follow_the_leader

MIT License
13 stars 5 forks source link

Fix yet more focal point misalignment issues (Resolves #38) #39

Closed matthew-carroll closed 1 year ago

matthew-carroll commented 1 year ago

Fix yet more focal point misalignment issues (Resolves #38)

The issue ticket includes a description of an investigation into this issue and a couple experiments that didn't help.

The best I was able to do to solve this latest alignment issue is to identify the situation where we've tried to paint Follower content, but the FollowerLayer isn't attached to the Scene. This situation means that either the Follower content, e.g., iOS Toolbar, didn't have orientation data when it painted, or had incorrect orientation data, thus mis-aligning aspects of its content.

When this situation is identified, we schedule another paint frame.

This continues the extra frame problem that plagues this entire area of Flutter UX, but at least we can get rid of some ugly mis-alignment among popovers.