YInkButton function
Material
YInkButton(
- Widget? widget, {
- dynamic color = Colors.transparent,
- bool enable = true,
- int? tapTime,
- 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()));
}