Merge pull request #21 from SyncrowIOT/dev

fix changes
This commit is contained in:
Abdullah
2024-09-09 15:03:21 +03:00
committed by GitHub

View File

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