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}); final String caption; final Color backgroundColor; final Color captionColor; final void Function()? onPressed; @override Widget build(BuildContext context) { return SizedBox( width: 500, height: 100, child: ElevatedButton( onPressed: onPressed, style: ElevatedButton.styleFrom( backgroundColor: backgroundColor, foregroundColor: captionColor, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), ), ), child: caption.text.xl4.make(), ), ); } }