diff --git a/example/lib/MyExampleAnalytics/example_analytics_vendor.dart b/example/lib/MyExampleAnalytics/example_analytics_vendor.dart index 68f6ac5..57815c2 100644 --- a/example/lib/MyExampleAnalytics/example_analytics_vendor.dart +++ b/example/lib/MyExampleAnalytics/example_analytics_vendor.dart @@ -9,12 +9,12 @@ class ExampleAnalyticsVendor extends AnalyticsVendor { ExampleAnalyticsVendor() : super('ExampleAnalytics'); @override - void init() { + Future init() async { print('ExampleAnalytics has run init()'); } @override - void handleAction(AnalyticsAction action) { + Future handleAction(AnalyticsAction action) async { if (action is TrackEvent) { print('TrackEvent: ${action.eventName} with ${action.parameters}'); } diff --git a/example/lib/main.dart b/example/lib/main.dart index 3b285b5..e2f8dcb 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -26,7 +26,7 @@ class MyApp extends StatelessWidget { class MyHomePage extends StatefulWidget { MyHomePage({Key? key, required this.title}) : super(key: key) { - AnalyticsX().invokeAction(SetScreen('HomePage')); + AnalyticsX().invokeAction(SetScreen('HomePage', '')); } final String title;