setAppearance()
Live restyle (e.g. when your app switches to dark theme).
Future<void> setAppearance(Appearance appearance)Parameters
Section titled “Parameters”appearanceAppearanceRequiredThe 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" } });Was this page helpful?
Thank you. We read every answer.