PrimaryButton constructor
const
PrimaryButton({
- Key? key,
- String text = "",
- required VoidCallback onPressed,
- double fontSize = 14,
- Color textColor = const Color(0xff222222),
- FontWeight? fontWeight,
- Color disableTextColor = const Color(0x80222222),
- double? width,
- double? height = 38,
- Color backgroundColor = const Color(0xffEEEBD7),
- Color disableBackgroundColor = const Color(0xffEEEBD7),
- Color? overlayColor,
- BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(30)),
- Widget? child,
- Color borderColor = const Color(0xffEEEBD7),
- double borderWidth = 1,
- EdgeInsetsGeometry margin = EdgeInsets.zero,
- bool visible = true,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- bool enable = true,
- dynamic buildCall(
- PrimaryButtonController controller
- AlignmentGeometry? alignment,
Implementation
const PrimaryButton({
Key? key,
this.text = "",
required this.onPressed,
this.fontSize = 14,
this.textColor = const Color(0xff222222),
this.fontWeight,
this.disableTextColor = const Color(0x80222222),
this.width,
this.height = 38,
this.backgroundColor = const Color(0xffEEEBD7),
this.disableBackgroundColor = const Color(0xffEEEBD7),
this.overlayColor,
this.borderRadius = const BorderRadius.all(Radius.circular(30)),
this.child,
this.borderColor = const Color(0xffEEEBD7),
this.borderWidth = 1,
this.margin = EdgeInsets.zero,
this.visible = true,
this.padding = EdgeInsets.zero,
this.enable = true,
this.buildCall,
this.alignment,
}) : super(key: key);