button method
Implementation
Widget button({
void Function()? onPressed,
Color? color,
Color? textColor,
}) {
return textColor == null
? color == null
? text.fullWhite.px10.py5.container.sky500.roundedMd.inkWell(
onTap: onPressed,
)
: text.fullWhite.px10.py5.container
.setColor(color)
.roundedMd
.inkWell(
onTap: onPressed,
)
: color == null
? text.color(textColor).px10.py5.container.sky500.roundedMd.inkWell(
onTap: onPressed,
)
: text
.color(textColor)
.px10
.py5
.container
.setColor(color)
.roundedMd
.inkWell(
onTap: onPressed,
);
}