github flet-dev/flet v1.1.4

one hour ago

Improvements

  • Give each app embedded with FletApp its own SharedPreferences space: its keys go under a prefix set with the new FletApp.storage_prefix, by default one derived from its URL, so an embedded app and its host, or two embedded apps, keep separate keys; get_keys() and clear() only see the embedded app's own. "" shares the host's keys as before. On web, a page can set the top-level app's prefix with window.flet.storagePrefix, and an embedded app's prefix nests under its host's. Data an embedded app saved before this change stays under the old, unprefixed keys (#7135) by @FeodorFitsner.
  • flet-secure-storage: an app embedded with FletApp gets its own SecureStorage space too, under the same prefix as its SharedPreferences: get(), set(), contains_key() and remove() use its own keys, get_all() lists only those, without the prefix, and clear() removes only those (#7137) by @FeodorFitsner.
  • On web, don't open javascript:, blob: or filesystem: URLs from UrlLauncher.launch_url(), UrlLauncher.open_window(), a control's url or a Markdown link, and don't load them in a WebView; a scheme hidden behind leading spaces or tabs (" java\tscript:") is recognized as the browser would. An open_window() title starting with _ no longer acts as a browser target such as _self (#7136) by @FeodorFitsner.
  • An app embedded with FletApp opens a _self, _parent or _top link in a new tab instead of replacing its host's page, and on web its WebView (flet-webview) shows the page in a sandboxed frame, apart from the host's page (#7136) by @FeodorFitsner.
  • Give each app embedded with FletApp its own SharedPreferences space: its keys go under a prefix set with the new FletApp.storage_prefix, by default one derived from its URL, so an embedded app and its host, or two embedded apps, keep separate keys; get_keys() and clear() only see the embedded app's own. "" shares the host's keys as before. On web, a page can set the top-level app's prefix with window.flet.storagePrefix, and an embedded app's prefix nests under its host's. Data an embedded app saved before this change stays under the old, unprefixed keys (#7135) by @FeodorFitsner.

Full Changelog: v1.1.3...v1.1.4

Don't miss a new flet release

NewReleases is sending notifications on new releases.