Code
3 min
call this in the app function in the main app component before the return function appstorys initialize('your account id', 'your app id', 'your user id', (string route, map\<string, dynamic>? params) { // optional for custom redirection using pagename or key value pair }); track screens using this function appstorys trackscreen( screenname, // enter the screen name which you want to pass here context, screenattributes, \["widget position list"], // optional this is for showing multiple widgets on the same screen ); to call stories, paste this code appstorys stories() to call widgets, paste this code appstorys widgets() to call overlay elements which include banners \ floaters \ pip videos \ csat \ surveys \ modals paste this code appstorys overlayelements() keep the overlay elements above all the other screen elements , this makes sure these campaigns work properly this concludes the appstorys flutter sdk integration guide after completing these steps, your app will be set up to track user activity, display components, and support campaigns managed from the appstorys dashboard for further information, contact the appstorys team, and we would be happy to assist you during the integration process