Extras removed
This commit is contained in:
@@ -163,157 +163,10 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
}
|
||||
}
|
||||
|
||||
// @override
|
||||
// Widget build(BuildContext context) {
|
||||
// final loc = AppLocalizations.of(context);
|
||||
|
||||
// return Scaffold(
|
||||
// appBar: AppBar(
|
||||
// title: Text(loc.profile), // Localized "Profile"
|
||||
// ),
|
||||
// body: Stack(
|
||||
// children: [
|
||||
// ListView(
|
||||
// children: [
|
||||
// ListTile(
|
||||
// leading: const Icon(Icons.settings),
|
||||
// title: Text(loc.preferences),
|
||||
// trailing: const Icon(Icons.chevron_right),
|
||||
// onTap: () {
|
||||
// Navigator.push(
|
||||
// context,
|
||||
// MaterialPageRoute(
|
||||
// builder: (context) => const PreferenceScreen()),
|
||||
// );
|
||||
// },
|
||||
// ),
|
||||
// ListTile(
|
||||
// leading: const Icon(Icons.security),
|
||||
// title: Text(loc.securitySettings),
|
||||
// trailing: const Icon(Icons.chevron_right),
|
||||
// onTap: () {
|
||||
// Navigator.push(
|
||||
// context,
|
||||
// MaterialPageRoute(
|
||||
// builder: (context) => SecuritySettingsScreen(
|
||||
// mobileNumber: widget.mobileNumber,
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
// },
|
||||
// ),
|
||||
// ListTile(
|
||||
// leading: const Icon(Icons.currency_rupee),
|
||||
// title: Text(AppLocalizations.of(context).dailylimit),
|
||||
// onTap: () {
|
||||
// Navigator.push(
|
||||
// context,
|
||||
// MaterialPageRoute(
|
||||
// builder: (context) => const DailyLimitScreen()),
|
||||
// );
|
||||
// },
|
||||
// ),
|
||||
// SwitchListTile(
|
||||
// title:
|
||||
// Text(AppLocalizations.of(context).enableFingerprintLogin),
|
||||
// value: _isBiometricEnabled,
|
||||
// onChanged: (bool value) {
|
||||
// // The state is now managed within _handleBiometricToggle
|
||||
// _handleBiometricToggle(value);
|
||||
// },
|
||||
// secondary: const Icon(Icons.fingerprint),
|
||||
// ),
|
||||
// ListTile(
|
||||
// leading: const Icon(Icons.smartphone),
|
||||
// title: const Text("App Version"),
|
||||
// trailing: FutureBuilder<String>(
|
||||
// future: _getAppVersion(),
|
||||
// builder:
|
||||
// (BuildContext context, AsyncSnapshot<String> snapshot) {
|
||||
// if (snapshot.connectionState == ConnectionState.waiting) {
|
||||
// // Show a loading indicator while waiting for the future to complete
|
||||
// return const CircularProgressIndicator();
|
||||
// } else if (snapshot.hasError) {
|
||||
// return const Text("Error");
|
||||
// } else {
|
||||
// // Display the version number once the future is complete
|
||||
// return Text(
|
||||
// snapshot.data ?? "N/A",
|
||||
// selectionColor: const Color(0xFFFFFFFF),
|
||||
// );
|
||||
// }
|
||||
// },
|
||||
// ),
|
||||
// ),
|
||||
// ListTile(
|
||||
// leading: const Icon(Icons.exit_to_app),
|
||||
// title: Text(AppLocalizations.of(context).logout),
|
||||
// onTap: () async {
|
||||
// final shouldExit = await showDialog<bool>(
|
||||
// context: context,
|
||||
// builder: (context) => AlertDialog(
|
||||
// title: Text(AppLocalizations.of(context).logout),
|
||||
// content: Text(AppLocalizations.of(context).logoutCheck),
|
||||
// actions: [
|
||||
// TextButton(
|
||||
// onPressed: () => Navigator.of(context).pop(false),
|
||||
// child: Text(AppLocalizations.of(context).no),
|
||||
// ),
|
||||
// TextButton(
|
||||
// onPressed: () => Navigator.of(context).pop(true),
|
||||
// child: Text(AppLocalizations.of(context).yes),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// );
|
||||
|
||||
// if (shouldExit == true) {
|
||||
// if (Platform.isAndroid) {
|
||||
// SystemNavigator.pop();
|
||||
// }
|
||||
// exit(0);
|
||||
// }
|
||||
// },
|
||||
// ),
|
||||
// ListTile(
|
||||
// leading: const Icon(Icons.logout),
|
||||
// title: Text(AppLocalizations.of(context).deregister),
|
||||
// onTap: () async {
|
||||
// final shouldLogout = await showDialog<bool>(
|
||||
// context: context,
|
||||
// builder: (_) => const LogoutDialog(),
|
||||
// );
|
||||
|
||||
// if (shouldLogout == true) {
|
||||
// await _handleLogout(context);
|
||||
// }
|
||||
// },
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// IgnorePointer(
|
||||
// child: Center(
|
||||
// child: Opacity(
|
||||
// opacity: 0.07, // Reduced opacity
|
||||
// child: ClipOval(
|
||||
// child: Image.asset(
|
||||
// 'assets/images/logo.png',
|
||||
// width: 200, // Adjust size as needed
|
||||
// height: 200, // Adjust size as needed
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// );
|
||||
// }
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final loc = AppLocalizations.of(context);
|
||||
final theme = Theme.of(context);
|
||||
final isDarkMode = theme.brightness == Brightness.dark;
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
|
||||
Reference in New Issue
Block a user