CustomButton constructor
const
CustomButton({
- Key? key,
- required String text,
- String? subtext,
- Widget? icon,
- bool isEnabled = true,
- bool isPrimary = true,
- bool isWarning = false,
- bool isLoading = false,
- bool iconIsLeft = true,
- double horizontalPadding = 12.5,
- required dynamic onPressed(),
- TextStyle? textStyle,
- bool forceDarkMode = false,
- bool hasBorders = false,
Implementation
const CustomButton(
{super.key,
required this.text,
this.subtext,
this.icon,
this.isEnabled = true,
this.isPrimary = true,
this.isWarning = false,
this.isLoading = false,
this.iconIsLeft = true,
this.horizontalPadding = 12.5,
required this.onPressed,
this.textStyle,
this.forceDarkMode = false,
this.hasBorders = false});