MyCustomButton constructor
const
MyCustomButton({
- required VoidCallback onPressed,
- required String text,
- bool isLoadingIndicatorDisplayed = false,
- bool hasPostIcon = false,
- IconData? postIcon,
- bool isActive = true,
- bool isBordered = false,
- Color bgColor = Colors.black,
- Color textColor = Colors.white,
- double borderRadius = 8,
- Color borderColor = Colors.red,
Implementation
const MyCustomButton({
required this.onPressed,
required this.text,
this.isLoadingIndicatorDisplayed = false,
this.hasPostIcon = false,
this.postIcon,
this.isActive = true,
this.isBordered = false,
this.bgColor = Colors.black,
this.textColor = Colors.white,
this.borderRadius = 8,
this.borderColor = Colors.red,
});