Skip to content

Commit

Permalink
Added toast
Browse files Browse the repository at this point in the history
  • Loading branch information
swasan committed Mar 27, 2024
1 parent 541a816 commit df02704
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class _MyAppState extends State<MyApp> {
_showToast("Device ID Fetched");
} catch (e) {
_logException(e);
_showToast('Failed to get Device Id.');
}
}

Expand Down Expand Up @@ -199,7 +200,7 @@ class _MyAppState extends State<MyApp> {
void _trackCustomEvent() {
try {
var customEvent = CustomEvent('CustomEventName',
attributes: {'key1': 't rackCustomEvent'});
attributes: {'key1': 'trackCustomEvent'});
SFMCSdk.trackEvent(customEvent);
_showToast("Event tracked successfully");
} catch (e) {
Expand Down

0 comments on commit df02704

Please sign in to comment.