LokotroPrimaryButton constructor
const
LokotroPrimaryButton({
- Key? key,
- required String text,
- VoidCallback? onPressed,
- bool isLoading = false,
- bool isEnabled = true,
- IconData? icon,
- double? width,
- double? height = 56,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- BorderRadius? borderRadius,
- List<
Color> ? gradientColors, - TextStyle? textStyle,
- Color? backgroundColor,
- Color? disabledColor,
- List<
BoxShadow> ? boxShadow, - Duration animationDuration = const Duration(milliseconds: 200),
Implementation
const LokotroPrimaryButton({
super.key,
required this.text,
this.onPressed,
this.isLoading = false,
this.isEnabled = true,
this.icon,
this.width,
this.height = 56,
this.padding,
this.margin,
this.borderRadius,
this.gradientColors,
this.textStyle,
this.backgroundColor,
this.disabledColor,
this.boxShadow,
this.animationDuration = const Duration(milliseconds: 200),
});