mirror of
https://github.com/SyncrowIOT/web.git
synced 2026-10-25 01:07:56 +00:00
merge dev to devices view
This commit is contained in:
@@ -84,6 +84,9 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {
|
||||
} else if (response == "You entered wrong otp") {
|
||||
forgetValidate = 'Wrong one time password.';
|
||||
emit(AuthInitialState());
|
||||
}else if (response == "OTP expired") {
|
||||
forgetValidate = 'One time password has been expired.';
|
||||
emit(AuthInitialState());
|
||||
}
|
||||
} catch (failure) {
|
||||
// forgetValidate='Invalid Credentials!';
|
||||
@@ -91,7 +94,7 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {
|
||||
// emit(FailureForgetState(error: failure.toString()));
|
||||
}
|
||||
}
|
||||
|
||||
//925207
|
||||
String? validateCode(String? value) {
|
||||
if (value == null || value.isEmpty) {
|
||||
return 'Code is required';
|
||||
|
||||
@@ -146,7 +146,6 @@ class LoginMobilePage extends StatelessWidget {
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
|
||||
isDense: true,
|
||||
style: const TextStyle(color: Colors.black),
|
||||
items:loginBloc.regionList!.map((RegionModel region) {
|
||||
@@ -156,7 +155,6 @@ class LoginMobilePage extends StatelessWidget {
|
||||
);
|
||||
}).toList(),
|
||||
onChanged: (String? value) {
|
||||
print(value);
|
||||
},
|
||||
),
|
||||
)
|
||||
|
||||
@@ -166,8 +166,7 @@ class _LoginWebPageState extends State<LoginWebPage> {
|
||||
return DropdownMenuItem<String>(
|
||||
value: region.id,
|
||||
child: SizedBox(
|
||||
width: size.width*0.06,
|
||||
|
||||
width: size.width*0.08,
|
||||
child: Text(region.name)),
|
||||
);
|
||||
}).toList(),
|
||||
|
||||
Reference in New Issue
Block a user