button method
Widget
button(
- BuildContext context,
- String? text,
- Function? onPressed, {
- IconData? icon,
- Widget? leading,
- Widget? trailing,
- Widget? content,
- Color? color,
- Color? textColor,
- bool loading = false,
- double? borderRadius,
})
Implementation
Widget button(BuildContext context, String? text, Function? onPressed,
{IconData? icon,
Widget? leading,
Widget? trailing,
Widget? content,
Color? color,
Color? textColor,
bool loading = false,
double? borderRadius}) {
return CustomButton(
text: text,
onPressed: onPressed,
icon: icon,
leading: leading,
trailing: trailing,
content: content,
color: color,
textColor: textColor,
loading: loading,
borderRadius: borderRadius,
);
}