import 'package:flutter/material.dart'; import 'package:velocity_x/velocity_x.dart'; class NcButton extends StatelessWidget { const NcButton({ super.key, required this.caption, required this.backgroundColor, required this.captionColor, this.onPressed, required this.width, required this.height, }); final String caption; final Color backgroundColor; final Color captionColor; final double width; final double height; final void Function()? onPressed; @override Widget build(BuildContext context) { return SizedBox( width: width, height: height, child: ElevatedButton( onPressed: onPressed, style: ElevatedButton.styleFrom( padding: const EdgeInsets.symmetric(horizontal: 40, vertical: 20), backgroundColor: Colors.black, foregroundColor: Colors.white, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), ), ), child: caption.text.xl4.make(), ), ); } }