Skip to content

Commit

Permalink
Fix example project
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Caseley committed Aug 23, 2021
1 parent f8e7eb6 commit 6073680
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/lib/MyExampleAnalytics/example_analytics_vendor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ class ExampleAnalyticsVendor extends AnalyticsVendor {
ExampleAnalyticsVendor() : super('ExampleAnalytics');

@override
void init() {
Future<void> init() async {
print('ExampleAnalytics has run init()');
}

@override
void handleAction(AnalyticsAction action) {
Future<void> handleAction(AnalyticsAction action) async {
if (action is TrackEvent) {
print('TrackEvent: ${action.eventName} with ${action.parameters}');
}
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6073680

Please sign in to comment.