mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
login Enhancements and add search to forget password
This commit is contained in:
@ -172,11 +172,12 @@ class ForgetPasswordWebPage extends StatelessWidget {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
validator: forgetBloc.validateEmail,
|
validator: forgetBloc.validateEmail,
|
||||||
controller:
|
|
||||||
forgetBloc.forgetEmailController,
|
|
||||||
decoration: textBoxDecoration()!
|
decoration: textBoxDecoration()!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
hintText: 'Enter your email'),
|
hintText: 'Enter your email',
|
||||||
|
hintStyle: Theme.of(context).textTheme.bodySmall!.copyWith(
|
||||||
|
color: ColorsManager.grayColor,
|
||||||
|
fontWeight: FontWeight.w400)),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.black),
|
color: Colors.black),
|
||||||
),
|
),
|
||||||
@ -208,13 +209,15 @@ class ForgetPasswordWebPage extends StatelessWidget {
|
|||||||
decoration:
|
decoration:
|
||||||
textBoxDecoration()!.copyWith(
|
textBoxDecoration()!.copyWith(
|
||||||
hintText: 'Enter Code',
|
hintText: 'Enter Code',
|
||||||
|
hintStyle: Theme.of(context).textTheme.bodySmall!.copyWith(
|
||||||
|
color: ColorsManager.grayColor,
|
||||||
|
fontWeight: FontWeight.w400),
|
||||||
suffixIcon: SizedBox(
|
suffixIcon: SizedBox(
|
||||||
width: 100,
|
width: 100,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: state is TimerState &&
|
onTap: state is TimerState &&
|
||||||
!state
|
!state.isButtonEnabled &&
|
||||||
.isButtonEnabled &&
|
|
||||||
state.remainingTime !=
|
state.remainingTime !=
|
||||||
1
|
1
|
||||||
? null
|
? null
|
||||||
@ -225,10 +228,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
|
|||||||
child: Text(
|
child: Text(
|
||||||
'Get Code ${state is TimerState && !state.isButtonEnabled && state.remainingTime != 1 ? "(${forgetBloc.formattedTime(state.remainingTime)}) " : ""}',
|
'Get Code ${state is TimerState && !state.isButtonEnabled && state.remainingTime != 1 ? "(${forgetBloc.formattedTime(state.remainingTime)}) " : ""}',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: state
|
color: state is TimerState &&
|
||||||
is TimerState &&
|
!state.isButtonEnabled
|
||||||
!state
|
|
||||||
.isButtonEnabled
|
|
||||||
? Colors.grey
|
? Colors.grey
|
||||||
: ColorsManager
|
: ColorsManager
|
||||||
.btnColor,
|
.btnColor,
|
||||||
@ -242,8 +243,7 @@ class ForgetPasswordWebPage extends StatelessWidget {
|
|||||||
color: Colors.black),
|
color: Colors.black),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (forgetBloc.forgetValidate !=
|
if (forgetBloc.forgetValidate != '') // Check if there is a validation message
|
||||||
'') // Check if there is a validation message
|
|
||||||
Padding(
|
Padding(
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.only(top: 8.0),
|
const EdgeInsets.only(top: 8.0),
|
||||||
@ -275,18 +275,16 @@ class ForgetPasswordWebPage extends StatelessWidget {
|
|||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
validator:
|
validator: forgetBloc.passwordValidator,
|
||||||
forgetBloc.passwordValidator,
|
keyboardType: TextInputType.visiblePassword,
|
||||||
keyboardType:
|
controller: forgetBloc.forgetPasswordController,
|
||||||
TextInputType.visiblePassword,
|
decoration: textBoxDecoration()!.copyWith(
|
||||||
controller: forgetBloc
|
|
||||||
.forgetPasswordController,
|
|
||||||
decoration:
|
|
||||||
textBoxDecoration()!.copyWith(
|
|
||||||
hintText: 'At least 8 characters',
|
hintText: 'At least 8 characters',
|
||||||
|
hintStyle: Theme.of(context).textTheme.bodySmall!.copyWith(
|
||||||
|
color: ColorsManager.grayColor,
|
||||||
|
fontWeight: FontWeight.w400),
|
||||||
),
|
),
|
||||||
style: const TextStyle(
|
style: const TextStyle(color: Colors.black),
|
||||||
color: Colors.black),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user