import 'package:flutter/material.dart'; class OnboardingButton extends StatelessWidget { final String text; final VoidCallback? onPressed; final Color backgroundColor; const OnboardingButton({ super.key, required this.text, this.onPressed, this.backgroundColor = const Color(0xFF2D2D2D), }); @override Widget build(BuildContext context) { return Container( decoration: BoxDecoration( boxShadow: [ BoxShadow( color: const Color.fromARGB(59, 59, 59, 59), spreadRadius: 1, blurRadius: 14, offset: const Offset(0, 4), ), ], ), child: ElevatedButton( onPressed: onPressed, style: ElevatedButton.styleFrom( backgroundColor: backgroundColor, foregroundColor: Colors.white, disabledForegroundColor: Colors.white, disabledBackgroundColor: backgroundColor, padding: const EdgeInsets.symmetric(horizontal: 80, vertical: 10), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(16), ), elevation: 8, // Increased elevation for more prominent shadow shadowColor: const Color(0x47000000), // More defined shadow color ), child: Text( text, style: const TextStyle( color: Colors.white, fontSize: 20, fontWeight: FontWeight.w600, ), ), ), ); } }