Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showcase in ReorderableListView show at incorrect position #92

Closed
cirediew opened this issue Feb 22, 2021 · 0 comments · Fixed by #120
Closed

Showcase in ReorderableListView show at incorrect position #92

cirediew opened this issue Feb 22, 2021 · 0 comments · Fixed by #120
Labels
bug Something isn't working

Comments

@cirediew
Copy link

cirediew commented Feb 22, 2021

Describe the bug
When you use a Showcase widget in a ReorderableListView the cutout and tooltip are rendered at the wrong position.

To Reproduce
My code:

ReorderableListView(
          scrollController: scrollController,
          onReorder: (oldIndex, newIndex) async {
            await onReorder(oldIndex, newIndex, sortOrder, account, repo);
          },
          children: [
            Showcase(
                key: myKey,
                overlayColor: Colors.red,
                child: Text('abcdefg'),
                description: 'this is it')
          ]
);

I did some digging myself and by adding ancestor to every localToGlobal in: get_position.dart, like so:
box.localToGlobal(const Offset(0.0, 0.0), ancestor: box)
will solve the issue for widgets in a ReorderableListView. But doing so creates the same issue for widgets not in a ReorderableListView. So I'm not entirely sure if this is a issue with the lib or with flutter.

Edit:
As you can see the red overlay also doesn't overlay the app bar and bottom bar, as it should be doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants