outlineButton method
Widget
outlineButton(
- BuildContext context,
- String? text,
- Function? onPressed, {
- IconData? icon,
- Widget? leading,
- Widget? trailing,
- Widget? content,
- Color? color,
- Color? bgColor,
- bool loading = false,
- double? borderRadius,
})
Implementation
Widget outlineButton(BuildContext context, String? text, Function? onPressed,
{IconData? icon,
Widget? leading,
Widget? trailing,
Widget? content,
Color? color,
Color? bgColor,
bool loading = false,
double? borderRadius}) {
return CustomButton(
text: text,
onPressed: onPressed,
icon: icon,
leading: leading,
trailing: trailing,
content: content,
color: color,
textColor: color ?? Theme.of(context).colorScheme.primary,
loading: loading,
outlined: true,
borderRadius: borderRadius,
);
}