Skip to content

Appearance

Typetryyoursize (Dart)

Like the web SDK’s (and Stripe’s) Appearance API. Unset values inherit the app’s.

themeAppearanceThemeRequired
colorPrimaryColor?Required

Buttons, the tape line, the "connected" dot.

colorBackgroundColor?Required
colorTextColor?Required
fontFamilyString?Required

A CSS font-family for the window (e.g. "Inter, sans-serif").

borderRadiusdouble?Required

Corner radius in logical pixels (0–32).

fontsList<String>Required

Google Fonts stylesheet URLs for the window.

final tys = await TryYourSize.create('pk_test_…', appearance: const Appearance(borderRadius: 10), locale: 'es');

Was this page helpful?