Skip to content

Commit

Permalink
preview updated
Browse files Browse the repository at this point in the history
  • Loading branch information
abuanwar072 committed Nov 16, 2023
1 parent 11d98f3 commit 06f9975
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
34 changes: 17 additions & 17 deletions lib/screens/sign_in/components/sign_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ class _SignFormState extends State<SignForm> {
return;
},
validator: (value) {
if (value!.isEmpty) {
addError(error: kEmailNullError);
return "";
} else if (!emailValidatorRegExp.hasMatch(value)) {
addError(error: kInvalidEmailError);
return "";
}
return null;
// if (value!.isEmpty) {
// addError(error: kEmailNullError);
// return "";
// } else if (!emailValidatorRegExp.hasMatch(value)) {
// addError(error: kInvalidEmailError);
// return "";
// }
// return null;
},
decoration: const InputDecoration(
labelText: "Email",
Expand All @@ -86,14 +86,14 @@ class _SignFormState extends State<SignForm> {
return;
},
validator: (value) {
if (value!.isEmpty) {
addError(error: kPassNullError);
return "";
} else if (value.length < 8) {
addError(error: kShortPassError);
return "";
}
return null;
// if (value!.isEmpty) {
// addError(error: kPassNullError);
// return "";
// } else if (value.length < 8) {
// addError(error: kShortPassError);
// return "";
// }
// return null;
},
decoration: const InputDecoration(
labelText: "Password",
Expand Down Expand Up @@ -139,7 +139,7 @@ class _SignFormState extends State<SignForm> {
Navigator.pushNamed(context, LoginSuccessScreen.routeName);
}
},
child: const Text("Continue"),
child: const Text("Sign In"),
),
],
),
Expand Down
1 change: 1 addition & 0 deletions lib/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class AppTheme {
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(16)),
),
textStyle: const TextStyle(color: Colors.white),
),
),
);
Expand Down
1 change: 0 additions & 1 deletion local_package/device_preview
Submodule device_preview deleted from ad2d81
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ packages:
source: hosted
version: "1.1.0"
device_preview:
dependency: "direct dev"
dependency: "direct main"
description:
path: "."
ref: HEAD
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ dependencies:
cupertino_icons: ^1.0.2
flutter_svg: ^2.0.9 # help us to use SVG in our app
provider: ^6.1.1 # for State management
device_preview:
git:
url: https://github.com/abuanwar072/device_preview.git

dev_dependencies:
flutter_test:
Expand All @@ -47,9 +50,6 @@ dev_dependencies:
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^2.0.0
device_preview:
git:
url: https://github.com/abuanwar072/device_preview.git

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down

0 comments on commit 06f9975

Please sign in to comment.