Flutter: Retrieve public URL

Retrieve URLs for assets in public buckets

Parameters

Examples

Returns the URL for an asset in a public bucket

final String publicUrl = supabase
  .storage
  .from('public-bucket')
  .getPublicUrl('avatar1.png');

With transform

final String publicUrl = await supabase
  .storage
  .from('public-bucket')
  .getPublicUrl(
    'avatar1.png',
    transform: TransformOptions(
      width: 200,
      height: 200,
    ),
  );