setAppearance()
Esta página aún no está disponible en tu idioma.
Live restyle (e.g. when your app switches to dark theme).
Future<void> setAppearance(Appearance appearance)Parameters
Section titled “Parameters”appearanceAppearanceObligatorioThe new appearance.
Example
Section titled “Example”await tys.setAppearance(const Appearance(colorPrimary: Color(0xFF3B2F26)));tys.appearance.colorPrimary = TYSColor(hex: "#3b2f26") // an open window restyles at oncetys.appearance = tys.appearance.copy(colorPrimary = 0xFF3B2F26.toInt())setAppearance({ variables: { colorPrimary: "#3b2f26" } });¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.