AppsFlyerSDK / appsflyer-flutter-plugin

Flutter Plugin for AppsFlyer SDK
MIT License
142 stars 111 forks source link

How call API on different pages ? #230

Open vptcnt opened 1 year ago

vptcnt commented 1 year ago

Hello,

I was wondering how to call SDK method on different pages ? My application is split on several pages. The SDK is initialized on the main.dart Then I have a home.dart, list.dart, settings.dart, etc....

For example, in settings.dart, I would like to call the method to opt-in or opt-out.

In the example proposed with the plugin, the logevent is pass through a widget parameter.

But if I have nested pages like this :

Main > Home > Account > Profile > Settings

How can Settings use appsflyer sdk method ?

Thanks for your help