outline static method
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,
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);
}