shadowButton method
Widget
shadowButton(
- BuildContext context,
- String? text,
- Function? onPressed, {
- IconData? icon,
- Widget? leading,
- Widget? trailing,
- Widget? content,
- Color? color,
- bool loading = false,
- double? borderRadius,
})
Implementation
Widget shadowButton(BuildContext context, String? text, Function? onPressed,
{IconData? icon,
Widget? leading,
Widget? trailing,
Widget? content,
Color? color,
bool loading = false,
double? borderRadius}) {
Color bgColor = color ?? Theme.of(context).textTheme.bodyMedium!.color!;
return CustomButton(
text: text,
onPressed: onPressed,
icon: icon,
leading: leading,
trailing: trailing,
content: content,
color: bgColor.withOpacity(0.1),
textColor: color ?? Theme.of(context).textTheme.bodyMedium!.color,
loading: loading,
borderRadius: borderRadius,
);
}