IDSButton constructor
const
IDSButton({
- Key? key,
- required String title,
- required VoidCallback onPressed,
- Color backgroundColor = Colors.blue,
- Color textColor = Colors.white,
- double fontSize = 18,
- FontWeight fontWeight = FontWeight.bold,
- double height = 60,
- double width = double.infinity,
- double borderRadius = 15,
- EdgeInsetsGeometry padding = const EdgeInsets.all(0),
- TextStyle? textStyle,
- BoxBorder? border,
Implementation
const IDSButton({
super.key,
required this.title,
required this.onPressed,
this.backgroundColor = Colors.blue,
this.textColor = Colors.white,
this.fontSize = 18,
this.fontWeight = FontWeight.bold,
this.height = 60,
this.width = double.infinity,
this.borderRadius = 15,
this.padding = const EdgeInsets.all(0),
this.textStyle,
this.border,
});