From 9805e86978d175702c6d3cae8126c224de64aee2 Mon Sep 17 00:00:00 2001 From: minikin Date: Tue, 24 Dec 2024 16:44:09 +0100 Subject: [PATCH] fix(cat-voices): code formatting --- .../apps/voices/integration_test/onboarding_test.dart | 2 +- .../integration_test/pageobject/app_bar_page.dart | 1 - .../integration_test/pageobject/onboarding_page.dart | 11 +++++++---- .../pages/registration/widgets/information_panel.dart | 4 +++- .../voices/lib/widgets/common/affix_decorator.dart | 5 ++++- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/catalyst_voices/apps/voices/integration_test/onboarding_test.dart b/catalyst_voices/apps/voices/integration_test/onboarding_test.dart index 55c15876d7e..3e5d5718eea 100644 --- a/catalyst_voices/apps/voices/integration_test/onboarding_test.dart +++ b/catalyst_voices/apps/voices/integration_test/onboarding_test.dart @@ -40,7 +40,7 @@ void main() async { patrolWidgetTest( 'Onboarding - visitor - get started screen looks as expected', - (PatrolTester $) async { + (PatrolTester $) async { await $.pumpWidgetAndSettle(App(routerConfig: router)); await $(AppBarPage.getStartedBtn) .tap(settleTimeout: const Duration(seconds: 10)); diff --git a/catalyst_voices/apps/voices/integration_test/pageobject/app_bar_page.dart b/catalyst_voices/apps/voices/integration_test/pageobject/app_bar_page.dart index ba80fdd9624..ab5528f9136 100644 --- a/catalyst_voices/apps/voices/integration_test/pageobject/app_bar_page.dart +++ b/catalyst_voices/apps/voices/integration_test/pageobject/app_bar_page.dart @@ -5,5 +5,4 @@ import 'package:flutter/material.dart'; class AppBarPage { static const spacesDrawerButton = Key('DrawerButton'); static const getStartedBtn = Key('GetStartedButton'); - } diff --git a/catalyst_voices/apps/voices/integration_test/pageobject/onboarding_page.dart b/catalyst_voices/apps/voices/integration_test/pageobject/onboarding_page.dart index 4b4de4e9a76..8b27bbfe509 100644 --- a/catalyst_voices/apps/voices/integration_test/pageobject/onboarding_page.dart +++ b/catalyst_voices/apps/voices/integration_test/pageobject/onboarding_page.dart @@ -76,8 +76,8 @@ class OnboardingPage { } static Future detailsPartGetStartedRecoverBtn( - PatrolTester $, - ) async { + PatrolTester $, + ) async { return $(registrationDetailsPanel) .$(const Key('CreateAccountType.recover')); } @@ -128,13 +128,16 @@ class OnboardingPage { } static Future registrationDetailsPanelLooksAsExpected( - PatrolTester $, RegistrationState getStarted,) async { + PatrolTester $, + RegistrationState getStarted, + ) async { expect( detailsPartGetStartedTitle($), T.get('Welcome to Catalyst'), ); expect( - detailsPartGetStartedBody($), isNotEmpty, + detailsPartGetStartedBody($), + isNotEmpty, ); expect( detailsPartGetStartedQuestionText($), diff --git a/catalyst_voices/apps/voices/lib/pages/registration/widgets/information_panel.dart b/catalyst_voices/apps/voices/lib/pages/registration/widgets/information_panel.dart index 12c160c2455..f62b36b524a 100644 --- a/catalyst_voices/apps/voices/lib/pages/registration/widgets/information_panel.dart +++ b/catalyst_voices/apps/voices/lib/pages/registration/widgets/information_panel.dart @@ -31,7 +31,9 @@ class InformationPanel extends StatelessWidget { ), const SizedBox(height: 12), Expanded( - key: const Key('PictureContainer'), child: Center(child: picture),), + key: const Key('PictureContainer'), + child: Center(child: picture), + ), const SizedBox(height: 12), _Footer( progress: progress, diff --git a/catalyst_voices/apps/voices/lib/widgets/common/affix_decorator.dart b/catalyst_voices/apps/voices/lib/widgets/common/affix_decorator.dart index 40c45517ba1..3a28ad7bb0b 100644 --- a/catalyst_voices/apps/voices/lib/widgets/common/affix_decorator.dart +++ b/catalyst_voices/apps/voices/lib/widgets/common/affix_decorator.dart @@ -63,7 +63,10 @@ class AffixDecorator extends StatelessWidget { ), SizedBox(width: gap), ], - Flexible(key: const Key('DecoratorData'),child: child,), + Flexible( + key: const Key('DecoratorData'), + child: child, + ), if (suffix != null) ...[ SizedBox(width: gap), IconTheme(