Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagedart
class MainPage extends StatefullWidget {
  ...
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView(
        children: [
          ...
          R89Tag(
            tag: 'bannerplay_video_trailer_tag',
            child: PaddingListTile(
              padding: const EdgeInsets.all(8.0),...
              childtitle: const Text(
                'Single Tag: All-in-One\nAd Management Solution for Publishers''Play Video'),
              onTap: ()    
              => playVideoTrailer(),
            ),
          ),
          ...
        ],
      ),
    );
  }
}
Info

In this example an interstitial would be triggered when the button is pressed and when the interstitial is closed the playVideoTrailer() method will be executed.