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.black, backgroundColor: Colors.white, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(16), ), padding: const EdgeInsets.symmetric(vertical: 16), ), onPressed: onPressed, child: Text(text), ), ); } }