CkShare class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Static Methods
-
builder({Key? key, required String title, required String deepLinkUrl, String? imageUrl, ByteData? byteImage, required Widget builder(BuildContext context, Future<void> share(), bool isLoading), VoidCallback? onShareStart, VoidCallback? onShareReady, VoidCallback? onShareSuccess, void onShareError(Object error)?})
→ Widget
-
Creates a CkShareButton using a
builder callback for full custom control.
-
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 onShareError(Object error)?})
→ Widget
-
Creates a CkShareButton wrapping a
child with an adaptive edge-tracing loader.
-
listenDeepLink(void onLink(Uri uri))
→ StreamSubscription<Uri>
-
Listens to incoming deep links (both cold-start launch links and runtime links).
-
resolveImageUrl(String imageUrl)
→ String
-
Resolves an image URL or path into a full valid URI string.