stargazing-dino / just_the_tooltip

A directional tooltip for flutter projects
https://pub.dev/packages/just_the_tooltip
MIT License
56 stars 55 forks source link

provide Alignment argument #36

Open stargazing-dino opened 2 years ago

stargazing-dino commented 2 years ago

Let's add an Alignment argument that the tooltip center will use to position itself. For example, we could provide a value of Alignment.topRight and the tail tip will point itself on the child's box at the topRight corner. We'd likely need to flip the Alignment (multiply by -1) if we end up positioning ourselves in the opposite of preferredAxis.