AppButton.primarySmall constructor

AppButton.primarySmall({
  1. required Widget child,
  2. Key? key,
  3. VoidCallback? onPressed,
  4. double? elevation,
  5. Widget? leftIcon,
  6. EdgeInsets? padding,
  7. Widget? rightIcon,
  8. Color? buttonColor,
  9. Color? foregroundColor,
  10. BorderSide? borderSide,
})

small size button

Implementation

AppButton.primarySmall({
  required Widget child,
  Key? key,
  VoidCallback? onPressed,
  double? elevation,
  Widget? leftIcon,
  EdgeInsets? padding,
  Widget? rightIcon,
  Color? buttonColor,
  Color? foregroundColor,
  BorderSide? borderSide,
}) : this._(
        key: key,
        onPressed: onPressed,
        child: child,
        elevation: elevation,
        textStyle: _smallTextStyle,
        padding: padding ?? _smallPadding,
        leftIcon: leftIcon,
        rightIcon: rightIcon,
        buttonColor: buttonColor,
        foregroundColor: foregroundColor,
        borderSide: borderSide,
      );