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

Trigger widget click #438

Open
erperejildo opened this issue May 15, 2024 · 0 comments
Open

Trigger widget click #438

erperejildo opened this issue May 15, 2024 · 0 comments

Comments

@erperejildo
Copy link

erperejildo commented May 15, 2024

It sounds pretty simple, but I don't know how I could do such a thing. Considering I have this widget:

return Showcase(
              key: widget.incomeCardKey,
              disableBarrierInteraction: true,
              description: 'Something',
              onTargetClick: () => debugPrint('target clicked'),
              disposeOnTap: true,
              child: WhatEver()
            );

WhatEver is not a simple element like:

ElevatedButton(
  onPressed: () {
    print('Button clicked!');
  },
  child: Text('Click Me'),
)

it is a bunch of different elements with more than one option to click, so I don't know exactly which button is going to be clicked.

So, can I have something like triggerElementClick: true or similar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant