From e099fdd80e3e5a7117b2632c86efc60bbb0084a5 Mon Sep 17 00:00:00 2001 From: Miguel Yurivilca <36353498+yuruyuri16@users.noreply.github.com> Date: Thu, 2 Jun 2022 15:09:58 -0500 Subject: [PATCH] refactor(form_flow): removed unnecessary parameters (#33) Co-authored-by: Miguel Yurivilca Co-authored-by: Marcos Sevilla <31174242+marcossevilla@users.noreply.github.com> --- examples/form_flow/ios/Runner.xcodeproj/project.pbxproj | 2 +- .../ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme | 2 +- examples/form_flow/ios/Runner/Info.plist | 2 ++ .../lib/signup/credentials/cubit/credentials_cubit.dart | 2 -- examples/form_flow/packages/profile/lib/src/models/user.dart | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/form_flow/ios/Runner.xcodeproj/project.pbxproj b/examples/form_flow/ios/Runner.xcodeproj/project.pbxproj index 4ac7ffc..bfc27c3 100644 --- a/examples/form_flow/ios/Runner.xcodeproj/project.pbxproj +++ b/examples/form_flow/ios/Runner.xcodeproj/project.pbxproj @@ -127,7 +127,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1210; + LastUpgradeCheck = 1300; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { diff --git a/examples/form_flow/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/examples/form_flow/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 8605956..c87d15a 100644 --- a/examples/form_flow/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/examples/form_flow/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ UIViewControllerBasedStatusBarAppearance + CADisableMinimumFrameDurationOnPhone + diff --git a/examples/form_flow/lib/signup/credentials/cubit/credentials_cubit.dart b/examples/form_flow/lib/signup/credentials/cubit/credentials_cubit.dart index c327716..7291b06 100644 --- a/examples/form_flow/lib/signup/credentials/cubit/credentials_cubit.dart +++ b/examples/form_flow/lib/signup/credentials/cubit/credentials_cubit.dart @@ -12,7 +12,6 @@ class CredentialsCubit extends Cubit { emit( state.copyWith( email: email, - name: state.name, status: Formz.validate([email, state.name]), ), ); @@ -22,7 +21,6 @@ class CredentialsCubit extends Cubit { final name = NameFormInput.dirty(value); emit( state.copyWith( - email: state.email, name: name, status: Formz.validate([state.email, name]), ), diff --git a/examples/form_flow/packages/profile/lib/src/models/user.dart b/examples/form_flow/packages/profile/lib/src/models/user.dart index 8ee61da..51fdef2 100644 --- a/examples/form_flow/packages/profile/lib/src/models/user.dart +++ b/examples/form_flow/packages/profile/lib/src/models/user.dart @@ -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.