diff --git a/b0esche_cloud/lib/widgets/account_settings_dialog.dart b/b0esche_cloud/lib/widgets/account_settings_dialog.dart index 94b06c7..e9a5ef9 100644 --- a/b0esche_cloud/lib/widgets/account_settings_dialog.dart +++ b/b0esche_cloud/lib/widgets/account_settings_dialog.dart @@ -327,13 +327,26 @@ class _AccountSettingsDialogState extends State { Expanded( child: TextButton( onPressed: () => Navigator.of(context).pop(), - style: TextButton.styleFrom( - padding: const EdgeInsets.symmetric(vertical: 12), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(12), - side: BorderSide( - color: AppTheme.secondaryText.withValues( - alpha: 0.3, + style: ButtonStyle( + splashFactory: NoSplash.splashFactory, + overlayColor: WidgetStateProperty.resolveWith(( + Set states, + ) { + if (states.contains(WidgetState.pressed)) { + return Colors.transparent; + } + return null; // Use default for other states (like hover) + }), + padding: WidgetStateProperty.all( + const EdgeInsets.symmetric(vertical: 12), + ), + shape: WidgetStateProperty.all( + RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12), + side: BorderSide( + color: AppTheme.secondaryText.withValues( + alpha: 0.3, + ), ), ), ), @@ -355,14 +368,33 @@ class _AccountSettingsDialogState extends State { Navigator.of(context).pop(); _deleteAccount(); }, - style: ElevatedButton.styleFrom( - backgroundColor: AppTheme.errorColor, - foregroundColor: Colors.white, - elevation: 0, - shadowColor: Colors.transparent, - padding: const EdgeInsets.symmetric(vertical: 12), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(12), + style: ButtonStyle( + splashFactory: NoSplash.splashFactory, + overlayColor: WidgetStateProperty.resolveWith( + (Set states) { + if (states.contains(WidgetState.pressed)) { + return Colors.transparent; + } + return null; + }, + ), + backgroundColor: WidgetStateProperty.all( + AppTheme.errorColor, + ), + foregroundColor: WidgetStateProperty.all( + Colors.white, + ), + elevation: WidgetStateProperty.all(0), + shadowColor: WidgetStateProperty.all( + Colors.transparent, + ), + padding: WidgetStateProperty.all( + const EdgeInsets.symmetric(vertical: 12), + ), + shape: WidgetStateProperty.all( + RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12), + ), ), ), child: const Text(