YInkButton function

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

Implementation

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