YInkButton function

Material YInkButton(
  1. Widget? widget, {
  2. dynamic color = Colors.transparent,
  3. bool enable = true,
  4. bool isAnim = true,
  5. int? tapTime,
  6. required GestureTapCallback onTap,
})

Implementation

Material YInkButton(
  Widget? widget, {
  color = Colors.transparent,
  bool enable = true,
  bool isAnim = true,
  int? tapTime,
  required GestureTapCallback onTap,
}) {
  return Material(
    color: color,
    child: enable
        ? isAnim
            ? InkWell(
                child: widget ?? YEmpty(),
                onTap: enable ? () => abOPmqSFejLvyCIr(onTap, KsjxSzRaumsrOhgm: tapTime) : () {},
              )
            : GestureDetector(
                child: widget ?? YEmpty(),
                onTap: enable ? () => abOPmqSFejLvyCIr(onTap, KsjxSzRaumsrOhgm: tapTime) : () {},
              )
        : widget ?? YEmpty(),
  );
}