Appearance
Esta página aún no está disponible en tu idioma.
Like the web SDK’s (and Stripe’s) Appearance API. Unset values inherit the app’s.
Properties
Section titled “Properties”themeAppearanceThemeObligatoriocolorPrimaryColor?ObligatorioButtons, the tape line, the "connected" dot.
colorBackgroundColor?ObligatoriocolorTextColor?ObligatoriofontFamilyString?ObligatorioA CSS font-family for the window (e.g. "Inter, sans-serif").
borderRadiusdouble?ObligatorioCorner radius in logical pixels (0–32).
fontsList<String>ObligatorioGoogle Fonts stylesheet URLs for the window.
Example
Section titled “Example”final tys = await TryYourSize.create('pk_test_…', appearance: const Appearance(borderRadius: 10), locale: 'es');let tys = try TryYourSize(publishableKey: "pk_test_…", configuration: .init( appearance: Appearance(borderRadius: 10), locale: "es"))val tys = TryYourSize(context, "pk_test_…", TryYourSize.Configuration( appearance = Appearance(borderRadius = 10f), locale = "es",))await configure("pk_test_…", { appearance: { variables: { borderRadius: 10 } }, locale: "es" });¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.