Skip to content

Commit

Permalink
use isEmail from validators package
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaaElattar committed Nov 6, 2024
1 parent 05411d0 commit 1760cd0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/lib/services/tools_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'dart:io';
import 'dart:math';

import 'package:device_info_plus/device_info_plus.dart';
import 'package:email_validator/email_validator.dart';
import 'package:validators/validators.dart';

const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';

Expand All @@ -24,7 +24,7 @@ bool validateEmail(String? value) {
return false;
}

return EmailValidator.validate(value);
return isEmail(value);
}


Expand Down
8 changes: 0 additions & 8 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.4"
email_validator:
dependency: "direct main"
description:
name: email_validator
sha256: b19aa5d92fdd76fbc65112060c94d45ba855105a28bb6e462de7ff03b12fa1fb
url: "https://pub.dev"
source: hosted
version: "3.0.0"
encrypt:
dependency: transitive
description:
Expand Down
1 change: 0 additions & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ dependencies:
hashlib: any
stellar_flutter_sdk: ^1.8.9
flutter_launcher_icons: ^0.14.1
email_validator: ^3.0.0
dev_dependencies:
flutter_test:
sdk: flutter
Expand Down

0 comments on commit 1760cd0

Please sign in to comment.