From 40a2ce195106cc989f1c5e256c91792a80f5086c Mon Sep 17 00:00:00 2001 From: Sanketh B K Date: Tue, 10 Oct 2023 19:58:22 +0530 Subject: [PATCH] fix build errors --- .../widgets/security_settings.dart | 6 +-- ...n_state.dart => SimpleAccordionState.dart} | 0 ...der_item.dart => AccordionHeaderItem.dart} | 0 ...accordion_item.dart => AccordionItem.dart} | 0 ...rdion_widget.dart => AccordionWidget.dart} | 0 ...in_with_email_and_password_test.mocks.dart | 8 ++-- ...up_with_email_and_password_test.mocks.dart | 8 ++-- .../bloc/auth_form/auth_form_test.mocks.dart | 41 ++++++++++--------- 8 files changed, 32 insertions(+), 31 deletions(-) rename packages/simple_accordion/lib/model/{simple_accordion_state.dart => SimpleAccordionState.dart} (100%) rename packages/simple_accordion/lib/widgets/{accordion_header_item.dart => AccordionHeaderItem.dart} (100%) rename packages/simple_accordion/lib/widgets/{accordion_item.dart => AccordionItem.dart} (100%) rename packages/simple_accordion/lib/widgets/{accordion_widget.dart => AccordionWidget.dart} (100%) diff --git a/lib/features/auth/presentation/widgets/security_settings.dart b/lib/features/auth/presentation/widgets/security_settings.dart index b443cbae..123e17f2 100644 --- a/lib/features/auth/presentation/widgets/security_settings.dart +++ b/lib/features/auth/presentation/widgets/security_settings.dart @@ -14,9 +14,9 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; -import 'package:simple_accordion/widgets/accordion_header_item.dart'; -import 'package:simple_accordion/widgets/accordion_item.dart'; -import 'package:simple_accordion/widgets/accordion_widget.dart'; +import 'package:simple_accordion/widgets/AccordionHeaderItem.dart'; +import 'package:simple_accordion/widgets/AccordionItem.dart'; +import 'package:simple_accordion/widgets/AccordionWidget.dart'; // ignore: must_be_immutable class SecuritySettings extends StatelessWidget { diff --git a/packages/simple_accordion/lib/model/simple_accordion_state.dart b/packages/simple_accordion/lib/model/SimpleAccordionState.dart similarity index 100% rename from packages/simple_accordion/lib/model/simple_accordion_state.dart rename to packages/simple_accordion/lib/model/SimpleAccordionState.dart diff --git a/packages/simple_accordion/lib/widgets/accordion_header_item.dart b/packages/simple_accordion/lib/widgets/AccordionHeaderItem.dart similarity index 100% rename from packages/simple_accordion/lib/widgets/accordion_header_item.dart rename to packages/simple_accordion/lib/widgets/AccordionHeaderItem.dart diff --git a/packages/simple_accordion/lib/widgets/accordion_item.dart b/packages/simple_accordion/lib/widgets/AccordionItem.dart similarity index 100% rename from packages/simple_accordion/lib/widgets/accordion_item.dart rename to packages/simple_accordion/lib/widgets/AccordionItem.dart diff --git a/packages/simple_accordion/lib/widgets/accordion_widget.dart b/packages/simple_accordion/lib/widgets/AccordionWidget.dart similarity index 100% rename from packages/simple_accordion/lib/widgets/accordion_widget.dart rename to packages/simple_accordion/lib/widgets/AccordionWidget.dart diff --git a/test/features/auth/domain/usecases/sign_in_with_email_and_password_test.mocks.dart b/test/features/auth/domain/usecases/sign_in_with_email_and_password_test.mocks.dart index 1d625c80..5f6164b1 100644 --- a/test/features/auth/domain/usecases/sign_in_with_email_and_password_test.mocks.dart +++ b/test/features/auth/domain/usecases/sign_in_with_email_and_password_test.mocks.dart @@ -78,8 +78,8 @@ class MockIAuthenticationRepository extends _i1.Mock #password: password, }, ), - returnValue: _i5 - .Future<_i2.Either<_i6.SignUpFailure, _i7.LoggedInUser>>.value( + returnValue: _i5.Future< + _i2.Either<_i6.SignUpFailure, _i7.LoggedInUser>>.value( _FakeEither_0<_i6.SignUpFailure, _i7.LoggedInUser>( this, Invocation.method( @@ -107,8 +107,8 @@ class MockIAuthenticationRepository extends _i1.Mock #password: password, }, ), - returnValue: _i5 - .Future<_i2.Either<_i6.SignInFailure, _i7.LoggedInUser>>.value( + returnValue: _i5.Future< + _i2.Either<_i6.SignInFailure, _i7.LoggedInUser>>.value( _FakeEither_0<_i6.SignInFailure, _i7.LoggedInUser>( this, Invocation.method( diff --git a/test/features/auth/domain/usecases/sign_up_with_email_and_password_test.mocks.dart b/test/features/auth/domain/usecases/sign_up_with_email_and_password_test.mocks.dart index 68864a63..e6d9182e 100644 --- a/test/features/auth/domain/usecases/sign_up_with_email_and_password_test.mocks.dart +++ b/test/features/auth/domain/usecases/sign_up_with_email_and_password_test.mocks.dart @@ -98,8 +98,8 @@ class MockIAuthenticationRepository extends _i1.Mock #password: password, }, ), - returnValue: _i6 - .Future<_i2.Either<_i7.SignUpFailure, _i8.LoggedInUser>>.value( + returnValue: _i6.Future< + _i2.Either<_i7.SignUpFailure, _i8.LoggedInUser>>.value( _FakeEither_0<_i7.SignUpFailure, _i8.LoggedInUser>( this, Invocation.method( @@ -127,8 +127,8 @@ class MockIAuthenticationRepository extends _i1.Mock #password: password, }, ), - returnValue: _i6 - .Future<_i2.Either<_i7.SignInFailure, _i8.LoggedInUser>>.value( + returnValue: _i6.Future< + _i2.Either<_i7.SignInFailure, _i8.LoggedInUser>>.value( _FakeEither_0<_i7.SignInFailure, _i8.LoggedInUser>( this, Invocation.method( diff --git a/test/features/auth/presentation/bloc/auth_form/auth_form_test.mocks.dart b/test/features/auth/presentation/bloc/auth_form/auth_form_test.mocks.dart index 28ba99b4..59624405 100644 --- a/test/features/auth/presentation/bloc/auth_form/auth_form_test.mocks.dart +++ b/test/features/auth/presentation/bloc/auth_form/auth_form_test.mocks.dart @@ -497,23 +497,24 @@ class MockAuthenticationRepository extends _i1.Mock )), ) as _i12.Future<_i10.Either<_i15.SignInFailure, _i16.LoggedInUser>>); @override - _i12.Future<_i10.Either<_i15.ForgotPasswordFailure, bool>> - submitForgotPasswordEmail(String? forgotPasswordEmail) => - (super.noSuchMethod( - Invocation.method( - #submitForgotPasswordEmail, - [forgotPasswordEmail], - ), - returnValue: _i12 - .Future<_i10.Either<_i15.ForgotPasswordFailure, bool>>.value( + _i12.Future< + _i10.Either<_i15.ForgotPasswordFailure, bool>> submitForgotPasswordEmail( + String? forgotPasswordEmail) => + (super.noSuchMethod( + Invocation.method( + #submitForgotPasswordEmail, + [forgotPasswordEmail], + ), + returnValue: + _i12.Future<_i10.Either<_i15.ForgotPasswordFailure, bool>>.value( _FakeEither_8<_i15.ForgotPasswordFailure, bool>( - this, - Invocation.method( - #submitForgotPasswordEmail, - [forgotPasswordEmail], - ), - )), - ) as _i12.Future<_i10.Either<_i15.ForgotPasswordFailure, bool>>); + this, + Invocation.method( + #submitForgotPasswordEmail, + [forgotPasswordEmail], + ), + )), + ) as _i12.Future<_i10.Either<_i15.ForgotPasswordFailure, bool>>); @override _i12.Future<_i10.Either<_i15.SignUpFailure, bool>> updateEmail({ required String? oldEmail, @@ -588,8 +589,8 @@ class MockSignUpWithEmailAndPassword extends _i1.Mock #call, [params], ), - returnValue: _i12 - .Future<_i10.Either<_i15.SignUpFailure, _i16.LoggedInUser>>.value( + returnValue: _i12.Future< + _i10.Either<_i15.SignUpFailure, _i16.LoggedInUser>>.value( _FakeEither_8<_i15.SignUpFailure, _i16.LoggedInUser>( this, Invocation.method( @@ -634,8 +635,8 @@ class MockSignInWithEmailAndPassword extends _i1.Mock #call, [params], ), - returnValue: _i12 - .Future<_i10.Either<_i15.SignInFailure, _i16.LoggedInUser>>.value( + returnValue: _i12.Future< + _i10.Either<_i15.SignInFailure, _i16.LoggedInUser>>.value( _FakeEither_8<_i15.SignInFailure, _i16.LoggedInUser>( this, Invocation.method(