import 'package:flutter/material.dart'; class GlobalButton extends StatelessWidget { final VoidCallback onPressed; final String text; const GlobalButton({super.key, required this.onPressed, required this.text}); @override Widget build(BuildContext context) { return SizedBox( width: double.infinity, child: ElevatedButton( style: ElevatedButton.styleFrom( foregroundColor: Colors.white, backgroundColor: const Color(0xFF0052CC), shadowColor: const Color(0x330052CC), elevation: 4, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(16), ), padding: const EdgeInsets.symmetric(vertical: 16), textStyle: const TextStyle( fontSize: 16, fontWeight: FontWeight.w600, ), ), onPressed: onPressed, child: Text(text), ), ); } }