outline static method

Widget outline({
  1. required String text,
  2. required VoidCallback? onPressed,
  3. bool loading = false,
  4. ButtonSize size = ButtonSize.md,
  5. Widget? prefixIcon,
  6. Widget? suffixIcon,
  7. Color? backgroundColor,
  8. Color? textColor,
  9. MaterialTapTargetSize? tapTargetSize,
  10. bool stretch = true,
  11. Color? boarderColor,
  12. EdgeInsetsGeometry margin = EdgeInsets.zero,
  13. EdgeInsetsGeometry? padding,
})

Implementation

static Widget outline(
    {required String text,
    required VoidCallback? onPressed,
    bool loading = false,
    ButtonSize size = ButtonSize.md,
    Widget? prefixIcon,
    Widget? suffixIcon,
    Color? backgroundColor,
    Color? textColor,
    MaterialTapTargetSize? tapTargetSize,
    bool stretch = true,
    Color? boarderColor,
    EdgeInsetsGeometry margin = EdgeInsets.zero,
    EdgeInsetsGeometry? padding}) {
  return primary(
      text: text,
      onPressed: onPressed,
      loading: loading,
      prefixIcon: prefixIcon,
      suffixIcon: suffixIcon,
      size: size,
      backgroundColor: backgroundColor ?? Colors.white,
      textColor: textColor ?? KashiColors.grey1,
      boarderColor: KashiColors.grey4,
      stretch: stretch,
      margin: margin,
      padding: padding);
}