Test Sim Binding APK
This commit is contained in:
@@ -78,7 +78,7 @@ class _VerificationScreenState extends State<VerificationScreen> {
|
||||
setState(() {
|
||||
_statusMessage = "SMS sent. Waiting for network delivery...";
|
||||
});
|
||||
|
||||
|
||||
// Adding a 10-second delay to account for SMS network latency.
|
||||
await Future.delayed(const Duration(seconds: 10));
|
||||
|
||||
@@ -101,7 +101,6 @@ class _VerificationScreenState extends State<VerificationScreen> {
|
||||
|
||||
// Pop with success result
|
||||
Navigator.of(context).pop(true);
|
||||
|
||||
} catch (e) {
|
||||
setState(() {
|
||||
_statusMessage = e.toString();
|
||||
@@ -111,7 +110,8 @@ class _VerificationScreenState extends State<VerificationScreen> {
|
||||
}
|
||||
} else if (mounted) {
|
||||
setState(() {
|
||||
_statusMessage = "SMS sending failed. Please check permissions and try again.";
|
||||
_statusMessage =
|
||||
"SMS sending failed. Please check permissions and try again.";
|
||||
_isVerifying = false;
|
||||
_verificationFailed = true;
|
||||
});
|
||||
@@ -131,13 +131,12 @@ class _VerificationScreenState extends State<VerificationScreen> {
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
if (_isVerifying)
|
||||
const CircularProgressIndicator(),
|
||||
if (_isVerifying) const CircularProgressIndicator(),
|
||||
if (!_isVerifying && _verificationFailed)
|
||||
const Icon(Icons.error_outline, color: Colors.red, size: 50),
|
||||
if (!_isVerifying && !_verificationFailed)
|
||||
const Icon(Icons.check_circle_outline, color: Colors.green, size: 50),
|
||||
|
||||
const Icon(Icons.check_circle_outline,
|
||||
color: Colors.green, size: 50),
|
||||
const SizedBox(height: 32),
|
||||
Text(
|
||||
_statusMessage,
|
||||
@@ -163,4 +162,4 @@ class _VerificationScreenState extends State<VerificationScreen> {
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user