Mobile Number Implemented in OTP

This commit is contained in:
2025-09-11 18:13:39 +05:30
parent 0f205873a9
commit 82e057d804
7 changed files with 49 additions and 23 deletions

View File

@@ -7,10 +7,15 @@ import '../../di/injection.dart';
import '../../l10n/app_localizations.dart';
import 'package:kmobile/features/profile/preferences/preference_screen.dart';
class ProfileScreen extends StatelessWidget {
const ProfileScreen({super.key});
class ProfileScreen extends StatefulWidget {
final String mobileNumber;
const ProfileScreen({super.key, required this.mobileNumber});
@override
State<ProfileScreen> createState() => _ProfileScreenState();
}
class _ProfileScreenState extends State<ProfileScreen> {
Future<void> _handleLogout(BuildContext context) async {
final auth = getIt<AuthRepository>();
final prefs = await SharedPreferences.getInstance();
@@ -47,7 +52,9 @@ class ProfileScreen extends StatelessWidget {
onTap: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const ChangePasswordScreen()),
MaterialPageRoute(builder: (context) => ChangePasswordScreen(
mobileNumber: widget.mobileNumber,
)),
);
},
),