Flutter-Bounty-Hunters / follow_the_leader

MIT License
13 stars 5 forks source link

Fix Follower so that it supports bounds again, and add more scaling demos (Resolves #25) #27

Closed matthew-carroll closed 1 year ago

matthew-carroll commented 1 year ago

Fix Follower so that it supports bounds again, and add more scaling demos (Resolves #25)

When adding more scaling demos, it became clear that scaling was still broken, despite recent work to get it working.

This PR hacks together a combination of transforms that seems to get scaling working with aligners and boundaries.

We should come back soon and refactor the Follower implementation to move most/all transform behavior into the Layer instead of the RenderBox. This should greatly simplify the current spaghetti code.

matthew-carroll commented 1 year ago

FYI @angelosilvestre - I made a mess of the Follower implementation to get Follower and Leader scaling working. Hopefully this gets us the behavior we need and we can come back and refactor for better code later.