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) {