SimformSolutionsPvtLtd / flutter_showcaseview

Flutter plugin that allows you to showcase your features on flutter application. πŸ‘ŒπŸ”πŸŽ‰
https://pub.dev/packages/showcaseview
MIT License
1.52k stars 442 forks source link

Using an appBar in a Scaffold that wraps the widgets causes mis-alignment of highlight and tooltip with the widget being showcased #398

Closed justincbeck closed 1 year ago

justincbeck commented 1 year ago

Describe the bug When adding an app bar the highlight and tooltip are incorrectly offset (by the hight of the app bar) and no longer align with the widget being highlighted.

To Reproduce Steps to reproduce the behavior: You can see an example of this in this project.

To reproduce:

Expected behavior The highlight and tooltip should align with the widget being highlighted on screen.

Screenshots without_app_bar

with_app_bar

Smartphone (please complete the following information):

Additional context The project I'm using is a catch all POC I built to get my head around using go_router and riverpod so, sorry for the hoops to get to the offending screen.

justincbeck commented 1 year ago

Looks like this PR is related. Testing using that code, however did not resolve the issue outlined above.

justincbeck commented 1 year ago

Well, it looks like I needed to wrap the Scaffold inside the ShowCaseWidget. Now that I've done that, it lines up correctly again. I'm closing this as it's my issue. Thanks!