Skip to content

Commit

Permalink
run dart format for example app
Browse files Browse the repository at this point in the history
  • Loading branch information
brismithers committed May 13, 2024
1 parent efcfea7 commit 452f6bd
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,14 @@ class _MyAppState extends State<MyApp> {
void _handleStartDefaultLiveActivity() {
if (_liveActivityId == null) return;
print("Starting default live activity");
OneSignal.LiveActivities.startDefault(_liveActivityId!, {"title": "Welcome!"}, { "message": { "en": "Hello World!" }, "intValue": 3, "doubleValue": 3.14, "boolValue": true});
OneSignal.LiveActivities.startDefault(_liveActivityId!, {
"title": "Welcome!"
}, {
"message": {"en": "Hello World!"},
"intValue": 3,
"doubleValue": 3.14,
"boolValue": true
});
}

void _handleEnterLiveActivity() {
Expand All @@ -292,7 +299,8 @@ class _MyAppState extends State<MyApp> {
void _handleSetPushToStartLiveActivity() {
if (_liveActivityId == null) return;
print("Setting Push-To-Start live activity");
OneSignal.LiveActivities.setPushToStartToken(_liveActivityId!, "FAKE_TOKEN");
OneSignal.LiveActivities.setPushToStartToken(
_liveActivityId!, "FAKE_TOKEN");
}

void _handleRemovePushToStartLiveActivity() {
Expand Down Expand Up @@ -501,12 +509,16 @@ class _MyAppState extends State<MyApp> {
_handleExitLiveActivity, !_enableConsentButton)
]),
new TableRow(children: [
new OneSignalButton("Set Push-To-Start Live Activity",
_handleSetPushToStartLiveActivity, !_enableConsentButton)
new OneSignalButton(
"Set Push-To-Start Live Activity",
_handleSetPushToStartLiveActivity,
!_enableConsentButton)
]),
new TableRow(children: [
new OneSignalButton("Remove Push-To-Start Live Activity",
_handleRemovePushToStartLiveActivity, !_enableConsentButton)
new OneSignalButton(
"Remove Push-To-Start Live Activity",
_handleRemovePushToStartLiveActivity,
!_enableConsentButton)
]),
],
),
Expand Down

0 comments on commit 452f6bd

Please sign in to comment.