Button constructor
const
Button({ - Key? key,
- required CustomIcon? icon,
- bool center = true,
- Color color = Colors.transparent,
- BorderRadius borderRadius = BorderRadius.zero,
- required VoidCallback onPressed,
- String? text,
- EdgeInsets padding = EdgeInsets.zero,
- bool bold = false,
- bool multiLine = false,
})
Implementation
const Button({
super.key,
required this.icon,
this.center = true,
this.color = Colors.transparent,
this.borderRadius = BorderRadius.zero,
required this.onPressed,
this.text,
this.padding = EdgeInsets.zero,
this.bold = false,
this.multiLine = false,
});