smallButton method

Widget smallButton(
  1. BuildContext context,
  2. String? text,
  3. Function? onPressed, {
  4. IconData? icon,
  5. Color? color,
  6. Color? bgColor,
  7. bool loading = false,
  8. bool expand = false,
  9. double? borderRadius,
})

Implementation

Widget smallButton(BuildContext context, String? text, Function? onPressed,
    {IconData? icon,
    Color? color,
    Color? bgColor,
    bool loading = false,
    bool expand = false,
    double? borderRadius}) {
  return CustomButton(
    text: text,
    onPressed: onPressed,
    icon: icon,
    color: color,
    bgColor: bgColor,
    loading: loading,
    small: true,
    expanded: expand,
    borderRadius: borderRadius,
  );
}