import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class SocialButton extends StatelessWidget { final String iconPath; final String text; final VoidCallback onPressed; SocialButton({required this.iconPath, required this.text, required this.onPressed}); @override Widget build(BuildContext context) { return ElevatedButton.icon( onPressed: onPressed, style: ElevatedButton.styleFrom( foregroundColor: Colors.black, backgroundColor: Colors.white, side: const BorderSide(color: Colors.grey), padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 15), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), ), ), icon: Image.asset(iconPath, height: 24), label: Text(text, style: const TextStyle(fontSize: 16)), ); } }