This file contains hidden or 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
import { PasswordValidator } from '../../validators/password.validator'; | |
this.matching_passwords_group = new FormGroup({ | |
password: new FormControl('', Validators.compose([ | |
Validators.minLength(5), | |
Validators.required, | |
Validators.pattern('^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9]+$') //this is for the letters (both uppercase and lowercase) and numbers validation | |
])), | |
confirm_password: new FormControl('', Validators.required) | |
}, (formGroup: FormGroup) => { | |
return PasswordValidator.areEqual(formGroup); |
This file contains hidden or 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
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:google_maps_flutter/google_maps_flutter.dart'; | |
void main() => runApp(Main()); | |
class Main extends StatefulWidget { | |
@override | |
_MainState createState() => _MainState(); |
This file contains hidden or 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
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
class Home extends StatefulWidget { | |
Home({Key key}) : super(key: key); | |
@override | |
_HomeState createState() => _HomeState(); | |
} |
OlderNewer