inkWell method
墨水纹
Implementation
Widget inkWell({
Key? key,
Color? color,
double? borderRadius,
Function()? onTap,
Function()? onLongPress,
}) =>
Material(
color: color ?? Colors.transparent,
child: Ink(
child: InkWell(
borderRadius: borderRadius != null
? BorderRadius.all(
Radius.circular(borderRadius),
)
: null,
onTap: onTap ?? () {},
onLongPress: onLongPress ?? () {},
child: this,
),
),
);