button static method
Widget
button({
- Key? key,
- required String title,
- required String deepLinkUrl,
- String? imageUrl,
- ByteData? byteImage,
- required Widget child,
- CkShareLoaderStyle loaderStyle = CkShareLoaderStyle.adaptiveEdge,
- BoxShape? shape,
- BorderRadius? borderRadius,
- double strokeWidth = 2.5,
- double strokeLengthFactor = 0.3,
- Color? loaderColor,
- Color? trackColor,
- double paddingOffset = 0.0,
- Duration animationDuration = const Duration(milliseconds: 1100),
- Widget? customLoader,
- VoidCallback? onTap,
Creates a CkShareButton wrapping a child with an adaptive edge-tracing loader.
Implementation
static Widget button({
Key? key,
required String title,
required String deepLinkUrl,
String? imageUrl,
ByteData? byteImage,
required Widget child,
CkShareLoaderStyle loaderStyle = CkShareLoaderStyle.adaptiveEdge,
BoxShape? shape,
BorderRadius? borderRadius,
double strokeWidth = 2.5,
double strokeLengthFactor = 0.3,
Color? loaderColor,
Color? trackColor,
double paddingOffset = 0.0,
Duration animationDuration = const Duration(milliseconds: 1100),
Widget? customLoader,
VoidCallback? onTap,
VoidCallback? onShareStart,
VoidCallback? onShareReady,
VoidCallback? onShareSuccess,
void Function(Object error)? onShareError,
}) =>
CkShareButton(
key: key,
title: title,
deepLinkUrl: deepLinkUrl,
imageUrl: imageUrl,
byteImage: byteImage,
loaderStyle: loaderStyle,
shape: shape,
borderRadius: borderRadius,
strokeWidth: strokeWidth,
strokeLengthFactor: strokeLengthFactor,
loaderColor: loaderColor,
trackColor: trackColor,
paddingOffset: paddingOffset,
animationDuration: animationDuration,
customLoader: customLoader,
onTap: onTap,
onShareStart: onShareStart,
onShareReady: onShareReady,
onShareSuccess: onShareSuccess,
onShareError: onShareError,
child: child,
);