Skip to main content

data_save 0.4.4 copy "data_save: ^0.4.4" to clipboard
data_save: ^0.4.4 copied to clipboard

datasave for flutter and flutter web

0.4.4 #

  • Detect the default Windows preferences file during loading, so corrupt-file recovery works with DataSave.init() without supplying a path or adding any dependency. An explicit windowsPreferencesFilePath remains supported.

0.4.3 #

  • Added an optional windowsPreferencesFilePath to DataSave.init(). If loading on Windows throws FormatException, the supplied file is deleted so the next launch can start empty. Storage still uses SharedPreferences with no new dependencies; other load errors do not delete data.

0.4.0 #

  • Migrated the web implementation from deprecated dart:html APIs to package:web.
  • Added JavaScript and WebAssembly-compatible platform selection.
  • Safely encode cookie names and values, including Unicode and delimiters.
  • Use host-only cookies with SameSite=Lax and Secure on HTTPS.
  • Detect rejected and oversized cookies instead of failing silently.
  • Return null for missing or invalid typed values consistently.
  • Made DataSave.removeAll() awaitable.
  • Added setLargeString() and getLargeString() using localStorage on web with an in-memory fallback.
  • Added remove() for clearing the same key from both web storage modes and removeAllLarge() for clearing large-string storage.
  • removeAll() now clears both cookies and all localStorage values on web; large-string methods reuse the normal storage on native platforms.
  • Increased the minimum supported Dart SDK to 3.13.

0.3.6 #

  • Improved Flutter and Flutter Web compatibility.

0.0.1 #

  • Initial release.
2
likes
0
points
279
downloads

Publisher

unverified uploader

Weekly Downloads

datasave for flutter and flutter web

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, shared_preferences, web

More

Packages that depend on data_save