fix changes

This commit is contained in:
mohammad
2024-09-09 14:51:06 +03:00
parent 770db5383b
commit 7f862fac2a

View File

@ -139,9 +139,11 @@ class ForgetPasswordWebPage extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
const SizedBox(height: 10), const SizedBox(height: 10),
SizedBox( Form(
child: _buildDropdownField( key: forgetBloc.forgetRegionKey,
context, forgetBloc, size)) child: SizedBox(
child: _buildDropdownField(
context, forgetBloc, size)))
], ],
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
@ -226,12 +228,10 @@ class ForgetPasswordWebPage extends StatelessWidget {
1 1
? null ? null
: () { : () {
if (forgetBloc if (forgetBloc.forgetEmailKey.currentState!.validate()||forgetBloc.forgetRegionKey.currentState!.validate()) {
.forgetEmailKey if(forgetBloc.forgetRegionKey.currentState!.validate()){
.currentState! forgetBloc.add(StartTimerEvent());
.validate()) { }
forgetBloc.add(
StartTimerEvent());
} }
}, },
child: Text( child: Text(
@ -428,7 +428,7 @@ class ForgetPasswordWebPage extends StatelessWidget {
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Container( SizedBox(
width: size.width * 0.9, width: size.width * 0.9,
child: FormField<String>( child: FormField<String>(
validator: (value) { validator: (value) {