import 'package:flutter/material.dart'; import 'package:niogu_app/core/constants/app_color.dart'; import 'package:niogu_app/core/constants/app_font_size.dart'; import 'package:sizer/sizer.dart'; class CustomButton extends StatelessWidget { final String title; final VoidCallback? onPressed; const CustomButton({super.key, required this.title, this.onPressed}); @override Widget build(BuildContext context) { return SizedBox( width: double.infinity, height: 6.5.h, child: ElevatedButton( onPressed: onPressed, style: ElevatedButton.styleFrom( backgroundColor: AppColor.primaryColor, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(2.5.w), ), disabledBackgroundColor: Colors.grey.shade300 ), child: Text( title, style: TextStyle( color: Colors.white, fontSize: AppFontSize.medium.sp, fontWeight: FontWeight.bold, ), ), ), ); } }