Skip to content

Commit

Permalink
refactor(form_flow): removed unnecessary parameters (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: Miguel Yurivilca <[email protected]>
Co-authored-by: Marcos Sevilla <[email protected]>
  • Loading branch information
3 people authored Jun 2, 2022
1 parent b59e72e commit e099fdd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/form_flow/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1210;
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1210"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 2 additions & 0 deletions examples/form_flow/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class CredentialsCubit extends Cubit<CredentialsState> {
emit(
state.copyWith(
email: email,
name: state.name,
status: Formz.validate([email, state.name]),
),
);
Expand All @@ -22,7 +21,6 @@ class CredentialsCubit extends Cubit<CredentialsState> {
final name = NameFormInput.dirty(value);
emit(
state.copyWith(
email: state.email,
name: name,
status: Formz.validate([state.email, name]),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class User extends Equatable {
required this.pin,
});

/// Returns a `User` object with default properties.
/// Returns a [User] object with default properties.
const User.empty() : this(email: '', name: '', biography: '', pin: '');

/// The user's email address.
Expand Down

0 comments on commit e099fdd

Please sign in to comment.