From 6614d2060f7bda629c245c66bcfa07be9b1b067e Mon Sep 17 00:00:00 2001 From: xavierchanth Date: Wed, 13 Sep 2023 22:30:41 +0800 Subject: [PATCH] format: remove whitespace in at_onboarding.dart --- .../lib/at_onboarding.dart | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/packages/at_onboarding_flutter/lib/at_onboarding.dart b/packages/at_onboarding_flutter/lib/at_onboarding.dart index e115b050..38b7a6fb 100644 --- a/packages/at_onboarding_flutter/lib/at_onboarding.dart +++ b/packages/at_onboarding_flutter/lib/at_onboarding.dart @@ -12,7 +12,6 @@ import 'package:at_onboarding_flutter/services/onboarding_service.dart'; import 'package:at_onboarding_flutter/utils/at_onboarding_app_constants.dart'; import 'package:flutter/material.dart'; - class AtOnboarding { /// Using this function to get onboard atsing. /// @@ -65,12 +64,12 @@ class AtOnboarding { if (result is AtOnboardingResult) { return result; - } - + } + return AtOnboardingResult.cancelled(); - } + } - if (context.mounted){ + if (context.mounted) { final result = await Navigator.push( context, MaterialPageRoute( @@ -80,7 +79,7 @@ class AtOnboarding { ); }, ), - ); + ); if (result is AtOnboardingResult) { //Update primary atsign after onboard success @@ -89,7 +88,7 @@ class AtOnboarding { await changePrimaryAtsign(atsign: result.atsign!); } return result; - } + } } return AtOnboardingResult.cancelled(); @@ -101,8 +100,8 @@ class AtOnboarding { }) async { /// Initial Setup await _initialSetup(context); - - if(context.mounted){ + + if (context.mounted) { final result = await Navigator.push( context, MaterialPageRoute( @@ -119,7 +118,7 @@ class AtOnboarding { return result; } } - + return AtOnboardingResult.cancelled(); } @@ -135,7 +134,7 @@ class AtOnboarding { /// Initial Setup await _initialSetup(context); - if(context.mounted){ + if (context.mounted) { final result = await Navigator.push(context, MaterialPageRoute(builder: (BuildContext context) { return AtOnboardingResetScreen(config: config);