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

[Question] How to detect click on ad? #70

Open
alurei97 opened this issue Oct 16, 2020 · 1 comment
Open

[Question] How to detect click on ad? #70

alurei97 opened this issue Oct 16, 2020 · 1 comment

Comments

@alurei97
Copy link

I have tried putting the ad in InkWell and it doesn't work.

InkWell(
  onTap: () => log('Clicked'),
  child: NativeAdmob(
    adUnitID: _adUnitID,
    numberAds: 3,
    controller: _nativeAdController,
    type: NativeAdmobType.full,
    ),
  ),

GestureDetector doesn't work either.

GestureDetector(
  behavior: HitTestBehavior.translucent,
  onTap: () => log('Clicked'),
  child: NativeAdmob(
    adUnitID: _adUnitID,
    numberAds: 3,
    controller: _nativeAdController,
    type: NativeAdmobType.full,
  ),
),
@bdlukaa
Copy link

bdlukaa commented Nov 9, 2020

You can't detect because the plugin uses a PlatformView

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

2 participants