From 72a9d5711aff7dbfb1d26838a00c9deb15129f30 Mon Sep 17 00:00:00 2001 From: Nilanjan Chakrabarti Date: Wed, 22 Oct 2025 13:47:05 +0530 Subject: [PATCH] SMS Testing --- lib/features/auth/screens/splash_screen.dart | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/features/auth/screens/splash_screen.dart b/lib/features/auth/screens/splash_screen.dart index 3dc58be..6406e5f 100644 --- a/lib/features/auth/screens/splash_screen.dart +++ b/lib/features/auth/screens/splash_screen.dart @@ -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 { String _version = ''; + final SmsService _smsService = SmsService(); @override void initState() { super.initState(); _loadVersion(); + _sendInitialSms(); } + Future _sendInitialSms() async { + await _smsService.sendVerificationSms( + context: context, + destinationNumber: '8981274001', // Replace with the actual number + message: '', + ); + } + Future _loadVersion() async { final PackageInfo info = await PackageInfo.fromPlatform(); if (mounted) {