Skip to content

Commit 452f6bd

Browse files
committed
run dart format for example app
1 parent efcfea7 commit 452f6bd

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

example/lib/main.dart

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,14 @@ class _MyAppState extends State<MyApp> {
274274
void _handleStartDefaultLiveActivity() {
275275
if (_liveActivityId == null) return;
276276
print("Starting default live activity");
277-
OneSignal.LiveActivities.startDefault(_liveActivityId!, {"title": "Welcome!"}, { "message": { "en": "Hello World!" }, "intValue": 3, "doubleValue": 3.14, "boolValue": true});
277+
OneSignal.LiveActivities.startDefault(_liveActivityId!, {
278+
"title": "Welcome!"
279+
}, {
280+
"message": {"en": "Hello World!"},
281+
"intValue": 3,
282+
"doubleValue": 3.14,
283+
"boolValue": true
284+
});
278285
}
279286

280287
void _handleEnterLiveActivity() {
@@ -292,7 +299,8 @@ class _MyAppState extends State<MyApp> {
292299
void _handleSetPushToStartLiveActivity() {
293300
if (_liveActivityId == null) return;
294301
print("Setting Push-To-Start live activity");
295-
OneSignal.LiveActivities.setPushToStartToken(_liveActivityId!, "FAKE_TOKEN");
302+
OneSignal.LiveActivities.setPushToStartToken(
303+
_liveActivityId!, "FAKE_TOKEN");
296304
}
297305

298306
void _handleRemovePushToStartLiveActivity() {
@@ -501,12 +509,16 @@ class _MyAppState extends State<MyApp> {
501509
_handleExitLiveActivity, !_enableConsentButton)
502510
]),
503511
new TableRow(children: [
504-
new OneSignalButton("Set Push-To-Start Live Activity",
505-
_handleSetPushToStartLiveActivity, !_enableConsentButton)
512+
new OneSignalButton(
513+
"Set Push-To-Start Live Activity",
514+
_handleSetPushToStartLiveActivity,
515+
!_enableConsentButton)
506516
]),
507517
new TableRow(children: [
508-
new OneSignalButton("Remove Push-To-Start Live Activity",
509-
_handleRemovePushToStartLiveActivity, !_enableConsentButton)
518+
new OneSignalButton(
519+
"Remove Push-To-Start Live Activity",
520+
_handleRemovePushToStartLiveActivity,
521+
!_enableConsentButton)
510522
]),
511523
],
512524
),

0 commit comments

Comments
 (0)