ui_claims_pop_up_chngs
This commit is contained in:
parent
58b32005e9
commit
cb82278834
@ -54,11 +54,11 @@ class _loginState extends State<login> {
|
||||
// if(skipStatus == 0){
|
||||
empMobileNo = prefs.getString('empMobileNo');
|
||||
empEmailid = prefs.getString('empEmailid');
|
||||
if ((empMobileNo != null && empMobileNo.isNotEmpty) || (empEmailid != null && empEmailid.isNotEmpty)) {
|
||||
if ((empMobileNo != null && empMobileNo.isNotEmpty) ||
|
||||
(empEmailid != null && empEmailid.isNotEmpty)) {
|
||||
checkLoginPin(context);
|
||||
}
|
||||
// }
|
||||
|
||||
} else {
|
||||
if (kIsWeb) {
|
||||
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||
@ -105,18 +105,19 @@ class _loginState extends State<login> {
|
||||
}
|
||||
|
||||
if (data['is_biometric_enabled'] != null) {
|
||||
prefs.setString('is_biometric_enabled', data['is_biometric_enabled']);
|
||||
prefs.setString(
|
||||
'is_biometric_enabled', data['is_biometric_enabled']);
|
||||
}
|
||||
|
||||
if (data['is_mpin_skipped'] != null) {
|
||||
prefs.setString('is_mpin_skipped', data['is_mpin_skipped']);
|
||||
}
|
||||
|
||||
if (data['is_mpin_skipped'] != null && data['is_mpin_skipped'] == '0') {
|
||||
if (data['is_mpin_skipped'] != null &&
|
||||
data['is_mpin_skipped'] == '0') {
|
||||
context.go('/pinPage');
|
||||
// Navigator.pushReplacementNamed(context, 'pinPage');
|
||||
}
|
||||
|
||||
} else {
|
||||
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||
prefs.clear();
|
||||
@ -429,8 +430,7 @@ class _loginState extends State<login> {
|
||||
children: [
|
||||
Column(
|
||||
children: [
|
||||
SizedBox(
|
||||
height: _size.height / 6.4),
|
||||
SizedBox(height: _size.height / 6.4),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment
|
||||
.center, // Align to the center
|
||||
@ -940,7 +940,8 @@ class _loginState extends State<login> {
|
||||
.click,
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
context.go('/privacypolicy');
|
||||
context.go(
|
||||
'/privacypolicy');
|
||||
// Navigator.pushNamed(
|
||||
// context,
|
||||
// 'privacypolicy');
|
||||
@ -973,7 +974,8 @@ class _loginState extends State<login> {
|
||||
.click,
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
context.go('/termsofuse');
|
||||
context
|
||||
.go('/termsofuse');
|
||||
// Navigator.pushNamed(
|
||||
// context,
|
||||
// 'termsofuse');
|
||||
|
||||
@ -71,6 +71,19 @@ class PopupHelper {
|
||||
}
|
||||
});
|
||||
|
||||
// Auto close after 3 seconds and redirect
|
||||
Future.delayed(const Duration(seconds: 2), () {
|
||||
if (Navigator.of(dialogContext).canPop()) {
|
||||
Navigator.of(dialogContext).pop();
|
||||
}
|
||||
|
||||
if (wellnessURL != null) {
|
||||
launchURL(wellnessURL, context);
|
||||
} else {
|
||||
ToastHelper.showInfoToast(context, 'Invalid link or unavailable');
|
||||
}
|
||||
});
|
||||
|
||||
return Dialog(
|
||||
insetPadding: EdgeInsets.symmetric(horizontal: isMobile ? 40 : 0),
|
||||
shape: RoundedRectangleBorder(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user