Button constructor
const
Button({
- Key? key,
- required void onTap(),
- bool enabled = true,
- String? text,
- required ButtonType buttonType,
- EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 10, vertical: 10),
- EdgeInsetsGeometry? margin,
- required String heroTag,
- required Color background,
- required Color iconColor,
- required Color textColor,
Implementation
const Button({
Key? key,
required this.onTap,
this.enabled=true,
this.text,
required this.buttonType,
this.padding=const EdgeInsets.symmetric(horizontal: 10,vertical: 10),
this.margin,
required this.heroTag,
required this.background,
required this.iconColor,
required this.textColor,
}) : super(key: key);