Skip to content

4.0.3

Choose a tag to compare

@x401om x401om released this 30 Jul 17:02
· 6 commits to master since this release

πŸš€ New

  • AdaptyUI.createFlowView and AdaptyUIFlowPlatformView now accept a locale β€” the localization the flow view is rendered with. Since 4.0.0 a flow is localized when its view is built, and there was no way to choose that localization from Dart.

    Without a locale the view is rendered in en, falling back to the flow's default localization when the flow has no en. Asking for a localization the flow does not have falls back to the flow default as well, without an error. Strings missing from the chosen localization are filled in from the default one.

  • AdaptyUIFlowView now reports the locale the view was actually built with, so you can tell which localization was applied.

🩹 Fixed

  • Custom gradient assets lost all of their colors when the LinearGradient had no explicit stops β€” the idiomatic LinearGradient(colors: [a, b]) reached the native side with no colors at all. Affected both platforms.

⚠️ Deprecated

  • The locale argument of getFlow and getFlowForDefaultAudience has had no effect on flows since 4.0.0. It is now deprecated and logs a warning instead of being dropped silently β€” pass the locale to createFlowView or AdaptyUIFlowPlatformView instead.

Native dependencies in this release: iOS 4.0.2, Android 4.0.1.

Full Changelog: 4.0.2...4.0.3