From 60736809de8a83fa5d7bf0119b0463ceb9de2f20 Mon Sep 17 00:00:00 2001 From: Dan Caseley Date: Mon, 23 Aug 2021 10:55:46 +0100 Subject: [PATCH] Fix example project --- example/lib/MyExampleAnalytics/example_analytics_vendor.dart | 4 ++-- example/lib/main.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;