Skip to content

SizeGuide

Componenttryyoursize (Dart)

The compact “Size guide” button, drawn natively: “Size guide” → “Calculating your size…” → “Your size: M”. A tap opens the window. Listen to onRecommendation to preselect your picker.

const SizeGuide({
super.key,
required this.product,
this.variant = SizeGuideVariant.link,
this.label,
this.width = 220,
})
productStringRequired

Your product ID or SKU.

variantSizeGuideVariantOptional= SizeGuideVariant.link

link (default) or button.

labelString?Optional

Your own words instead of "Size guide".

widthdoubleOptional= 220

Platform views need a bounded width (default 220).

const SizeGuide(product: 'SKU-123') // listen to tys.onRecommendation to preselect

Was this page helpful?