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: isAnim
        ? InkWell(
            child: widget ?? YEmpty(),
            onTap: enable ? () => DehbsSqpMRhUSqgZ(onTap, MmHybnQvpRacrBhc: tapTime) : () {},
          )
        : GestureDetector(
            child: widget ?? YEmpty(),
            onTap: enable ? () => DehbsSqpMRhUSqgZ(onTap, MmHybnQvpRacrBhc: tapTime) : () {},
          ),
  );
}