Password validation with the dropdown/dialog is ready

This commit is contained in:
m1 2022-03-20 12:29:01 +01:00
parent 32fafe664d
commit 8329bf7bd3

View file

@ -298,10 +298,15 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
bottom: -48,
child: Row(
children: [
// SizedBox(
// width: 20, //hardcoded
// ),
SizedBox(
width: 20, //hardcoded
),
Container(
width: MediaQuery.of(context).size.width,
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 20),
child: Container(
decoration: BoxDecoration(
border: Border.all(
color: Theme.of(context).hintColor,
@ -316,7 +321,8 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
.dialogTheme
.backgroundColor,
),
width: MediaQuery.of(context).size.width * 0.9,
//width: MediaQuery.of(context).size.width,
width: double.infinity,
child: Column(
crossAxisAlignment:
CrossAxisAlignment.start,
@ -327,19 +333,21 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
child: Row(
children: [
Padding(
padding:
const EdgeInsets.fromLTRB(
10, 0, 8, 0),
padding: const EdgeInsets
.fromLTRB(10, 0, 8, 0),
child: _lenghtIsValid
? Icon(
Icons.check,
color: CupertinoColors
color:
CupertinoColors
.systemGrey2,
)
: Icon(
Icons.check,
color: CupertinoColors
.systemGrey6,
color: Theme.of(
context)
.dialogTheme
.backgroundColor,
)),
Text(
'Must be minimum 9 characters long',
@ -348,10 +356,12 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
decoration:
TextDecoration
.lineThrough,
color: CupertinoColors
color:
CupertinoColors
.systemGrey)
: TextStyle(
color: Color.fromARGB(
color:
Color.fromARGB(
255,
241,
118,
@ -362,12 +372,14 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
Padding(
padding: const EdgeInsets.all(4.0),
child: Padding(
padding: const EdgeInsets.fromLTRB(
padding:
const EdgeInsets.fromLTRB(
10, 0, 8, 0),
child: Row(
children: [
Container(
child: _specialCharIsPresent
child:
_specialCharIsPresent
? Icon(
Icons.check,
color: CupertinoColors
@ -375,8 +387,10 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
)
: Icon(
Icons.check,
color: CupertinoColors
.systemGrey6,
color: Theme.of(
context)
.dialogTheme
.backgroundColor,
)),
Text(
' Must have special characters',
@ -385,10 +399,12 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
decoration:
TextDecoration
.lineThrough,
color: CupertinoColors
color:
CupertinoColors
.systemGrey)
: TextStyle(
color: Color.fromARGB(
color: Color
.fromARGB(
255,
241,
118,
@ -401,12 +417,14 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
padding: const EdgeInsets.fromLTRB(
4, 4, 4, 8),
child: Padding(
padding: const EdgeInsets.fromLTRB(
padding:
const EdgeInsets.fromLTRB(
10, 0, 8, 0),
child: Row(
children: [
Container(
child: _capitalLetterIsPresent
child:
_capitalLetterIsPresent
? Icon(
Icons.check,
color: CupertinoColors
@ -414,8 +432,10 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
)
: Icon(
Icons.check,
color: CupertinoColors
.systemGrey6,
color: Theme.of(
context)
.dialogTheme
.backgroundColor,
)),
Text(
' Must have a capital letter',
@ -424,10 +444,12 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
decoration:
TextDecoration
.lineThrough,
color: CupertinoColors
color:
CupertinoColors
.systemGrey)
: TextStyle(
color: Color.fromARGB(
color: Color
.fromARGB(
255,
241,
118,
@ -438,6 +460,8 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
),
]),
),
),
),
SizedBox(
width: 20,
),