-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab043fa
commit 27a4df9
Showing
6 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export 'login/login_bloc.dart'; | ||
export 'phone_auth/phone_auth_bloc.dart'; | ||
export 'email_duplicate_check/email_duplicate_check_bloc.dart'; | ||
export 'sign_up/sign_up_bloc.dart'; |
21 changes: 21 additions & 0 deletions
21
lib/feature/account/presentation/bloc/sign_up/sign_up_bloc.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
import 'package:withu_app/core/core.dart'; | ||
import 'package:withu_app/feature/account/account.dart'; | ||
|
||
part 'sign_up_event.dart'; | ||
|
||
part 'sign_up_state.dart'; | ||
|
||
part 'sign_up_bloc.freezed.dart'; | ||
|
||
part 'sign_up_bloc.handler.dart'; | ||
|
||
class SignUpBloc extends BaseBloc<SignUpEvent, SignUpState> { | ||
final SignUpUseCase signUpUseCase; | ||
|
||
SignUpBloc({ | ||
required this.signUpUseCase, | ||
}) : super( | ||
SignUpState(status: BaseBlocStatus.initial()), | ||
); | ||
} |
3 changes: 3 additions & 0 deletions
3
lib/feature/account/presentation/bloc/sign_up/sign_up_bloc.handler.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
part of 'sign_up_bloc.dart'; | ||
|
||
extension SignUpBlocHandler on SignUpBloc {} |
3 changes: 3 additions & 0 deletions
3
lib/feature/account/presentation/bloc/sign_up/sign_up_event.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
part of 'sign_up_bloc.dart'; | ||
|
||
abstract class SignUpEvent extends BaseBlocEvent {} |
16 changes: 16 additions & 0 deletions
16
lib/feature/account/presentation/bloc/sign_up/sign_up_state.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
part of 'sign_up_bloc.dart'; | ||
|
||
@freezed | ||
class SignUpState extends BaseBlocState with _$SignUpState { | ||
factory SignUpState({ | ||
required BaseBlocStatus status, | ||
@Default('') String message, | ||
@Default(Name.empty) Name name, | ||
@Default(BirthDate.empty) BirthDate birthDate, | ||
@Default(GenderType.none) GenderType gender, | ||
@Default(Phone.empty) Phone phone, | ||
@Default(Email.empty) LoginId loginId, | ||
@Default(Password.empty) Password password, | ||
@Default(Password.empty) Password passwordVerify, | ||
}) = _SignUpState; | ||
} |