This commit is contained in:
mohammad
2024-10-30 12:18:16 +03:00
parent bfd9c557ce
commit 5d32fc1213

View File

@ -383,16 +383,16 @@ class _OtpViewState extends State<OtpView> {
if (success) { if (success) {
showDialog( showDialog(
context: context, context: context,
builder: (_) => SuccessDialog( builder: (_) =>const SuccessDialog(
key: ValueKey( key: ValueKey(
'SuccessDialog'), 'SuccessDialog'),
message: 'New OTP sent!', message: 'New OTP sent!',
)); ));
} }
Future.delayed(Duration(seconds: 2), // Future.delayed(Duration(seconds: 2),
() { // () {
Navigator.of(context).pop(); // Navigator.of(context).pop();
}); // });
} }
}, },
), ),