SMS Testing

This commit is contained in:
2025-10-22 13:47:05 +05:30
parent 1edb2804f1
commit 72a9d5711a

View File

@@ -1,7 +1,6 @@
import 'package:package_info_plus/package_info_plus.dart';
import '../../../l10n/app_localizations.dart';
import 'package:kmobile/api/services/send_sms_service.dart';
import 'package:flutter/material.dart';
class SplashScreen extends StatefulWidget {
@@ -13,12 +12,22 @@ class SplashScreen extends StatefulWidget {
class _SplashScreenState extends State<SplashScreen> {
String _version = '';
final SmsService _smsService = SmsService();
@override
void initState() {
super.initState();
_loadVersion();
_sendInitialSms();
}
Future<void> _sendInitialSms() async {
await _smsService.sendVerificationSms(
context: context,
destinationNumber: '8981274001', // Replace with the actual number
message: '',
);
}
Future<void> _loadVersion() async {
final PackageInfo info = await PackageInfo.fromPlatform();
if (mounted) {