import 'package:flutter/material.dart'; import 'package:flutter_application_1/core/theme/app_colors.dart'; class SecondaryButton extends StatelessWidget { final String text; final VoidCallback onPressed; final bool enabled; const SecondaryButton({ super.key, required this.text, required this.onPressed, this.enabled = true, }); @override Widget build(BuildContext context) { return SizedBox( height: 56, width: double.infinity, child: ElevatedButton( onPressed: enabled ? onPressed : null, style: ElevatedButton.styleFrom( backgroundColor: AppColors.white, disabledBackgroundColor: AppColors.white, disabledForegroundColor: AppColors.textMuted, shadowColor: Colors.transparent, surfaceTintColor: Colors.transparent, elevation: 0, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(16), side: BorderSide( color: enabled ? AppColors.inputBorder : const Color(0xFFD6DCE7), width: 1.2, ), ), ), child: Text( text, style: TextStyle( color: enabled ? AppColors.textDark : AppColors.textMuted, fontSize: 14, fontWeight: FontWeight.w700, ), ), ), ); } }